Class AdimensionalShape
-
- All Implemented Interfaces:
-
it.unibo.alchemist.model.geometry.Shape
,java.io.Serializable
public final class AdimensionalShape<S extends Vector<S>, A extends Transformation<S>> implements Shape<S, A>
A special shape which does not occupy space and does not intersect with any other, not even with itself. It also ignores any transformation.
-
-
Constructor Summary
Constructors Constructor Description AdimensionalShape(S centroid)
-
Method Summary
Modifier and Type Method Description Double
getDiameter()
S
getCentroid()
Boolean
intersects(Shape<S, A> other)
Boolean
contains(S vector)
AdimensionalShape<S, A>
transformed(Function1<A, Unit> transformation)
Any transformation is ignored. -
-
Constructor Detail
-
AdimensionalShape
AdimensionalShape(S centroid)
-
-
Method Detail
-
getDiameter
Double getDiameter()
-
getCentroid
S getCentroid()
-
intersects
Boolean intersects(Shape<S, A> other)
-
transformed
AdimensionalShape<S, A> transformed(Function1<A, Unit> transformation)
Any transformation is ignored.
-
-
-
-