-
- All Implemented Interfaces:
-
java.io.Serializable
public interface GeometricShapeFactory<S extends Vector<S>, A extends GeometricTransformation<S>> implements Serializable
Generic factory for GeometricShape.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public classGeometricShapeFactory.Companion
-
Method Summary
Modifier and Type Method Description abstract AdimensionalShape<S, A>adimensional()A special shape which does not occupy space and does not intersect with any other, not even with itself. abstract GeometricShape<S, A>requireCompatible(GeometricShape<?, ?> shape)Requires that the given shape is compatible with the ones provided by this factory, otherwise throws an exception. -
-
Method Detail
-
adimensional
abstract AdimensionalShape<S, A> adimensional()
A special shape which does not occupy space and does not intersect with any other, not even with itself.
-
requireCompatible
abstract GeometricShape<S, A> requireCompatible(GeometricShape<?, ?> shape)
Requires that the given shape is compatible with the ones provided by this factory, otherwise throws an exception.
- Parameters:
shape- the shape to check
-
-
-
-