Interface GeometricShapeFactory
-
- All Implemented Interfaces:
-
java.io.Serializable
public interface GeometricShapeFactory<S extends Vector<S>, A extends Transformation<S>> implements Serializable
Generic factory for Shape.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public class
GeometricShapeFactory.Companion
Factory methods for Shape.
-
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 Shape<S, A>
requireCompatible(Shape<?, ?> 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 Shape<S, A> requireCompatible(Shape<?, ?> 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- Returns:
the same shape
-
-
-
-