toggle menu
alchemist
35.0.0
jvm
switch theme
search in API
alchemist-loading
/
it.unibo.alchemist.model.positionfilters
/
Circle
Circle
open
class
Circle
<
P
:
Position2D
<
P
>
?
>
:
Abstract2DShape
<
P
>
(
source
)
A circle.
Parameters
<P>
Position type
Members
Constructors
Circle
Link copied to clipboard
constructor
(
centerx
:
Double
,
centery
:
Double
,
radius
:
Double
)
Functions
and
Link copied to clipboard
open
fun
and
(
other
:
Predicate
<
in
T
>
)
:
Predicate
<
T
>
contains
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.
invoke
Link copied to clipboard
open
fun
invoke
(
position
:
P
)
:
Boolean
Checks if the
position
is inside the shape.
abstract
fun
invoke
(
p
:
P1
)
:
R
is
Equal
Link copied to clipboard
open
fun
<
T
>
isEqual
(
targetRef
:
Any
)
:
Predicate
<
T
>
negate
Link copied to clipboard
open
fun
negate
(
)
:
Predicate
<
T
>
not
Link copied to clipboard
open
fun
<
T
>
not
(
target
:
Predicate
<
in
T
>
)
:
Predicate
<
T
>
or
Link copied to clipboard
open
fun
or
(
other
:
Predicate
<
in
T
>
)
:
Predicate
<
T
>
test
Link copied to clipboard
open
fun
test
(
position
:
P
)
:
Boolean
Checks if the
position
is inside the shape.
abstract
fun
test
(
p
:
T
)
:
Boolean
to
String
Link copied to clipboard
open
fun
toString
(
)
:
String