Class Abstract2DShape
-
- All Implemented Interfaces:
-
it.unibo.alchemist.model.PositionBasedFilter
,java.util.function.Predicate
,kotlin.Function
,kotlin.jvm.functions.Function1
public abstract class Abstract2DShape<P extends Position2D<P>> implements PositionBasedFilter<P>
A bidimensional Alchemist PositionBasedFilter that relies on AWT java.awt.Shape.
-
-
Method Summary
Modifier and Type Method Description final boolean
contains(P position)
Checks if the position is inside the shape. String
toString()
-
Methods inherited from class it.unibo.alchemist.model.PositionBasedFilter
invoke, test
-
Methods inherited from class java.util.function.Predicate
and, isEqual, negate, not, or, test
-
Methods inherited from class kotlin.jvm.functions.Function1
invoke
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-