Circle

open class Circle<P : Position2D<P>?> : Abstract2DShape<P>

A circle.

Parameters

<P>

Position type

Constructors

Link copied to clipboard
constructor(centerx: Double, centery: Double, radius: Double)

Functions

Link copied to clipboard
open fun and(p: Predicate<in T>): Predicate<T>
Link copied to clipboard
abstract fun contains(position: P): Boolean

Checks if the position is inside the shape.

fun contains(position: P): Boolean
Checks if the position is inside the shape.
Link copied to clipboard
open fun invoke(position: P): Boolean

Checks if the position is inside the shape.

abstract fun invoke(p: P1): R
Link copied to clipboard
open fun <T> isEqual(p: Any): Predicate<T>
Link copied to clipboard
open fun negate(): Predicate<T>
Link copied to clipboard
open fun <T> not(p: Predicate<in T>): Predicate<T>
Link copied to clipboard
open fun or(p: Predicate<in T>): Predicate<T>
Link copied to clipboard
open fun test(position: P): Boolean

Checks if the position is inside the shape.

abstract fun test(p: T): Boolean
Link copied to clipboard
open fun toString(): String