Euclidean2DShapeFactory
interface Euclidean2DShapeFactory : GeometricShapeFactory<Euclidean2DPosition, Euclidean2DTransformation>
Defines a factory of Shape for a bidimensional euclidean space.
Functions
Link copied to clipboard
A special shape that occupies no space and does not intersect any other shape.
Link copied to clipboard
A circle extends in the first and second axis by its diameter.
Link copied to clipboard
A circle sector is the portion of a disk enclosed by two radii and an arc and it extends in the first and second axis by its radius and angle.
Link copied to clipboard
An ellipse extends in the first and second axis by its width and height.
Link copied to clipboard
A rectangle extends in the first and second axis by its width and height.
Link copied to clipboard
abstract fun requireCompatible(shape: Shape<*, *>): Shape<Euclidean2DPosition, Euclidean2DTransformation>
Requires that the given shape is compatible with those provided by this factory; otherwise throws an exception.