Euclidean2DShapeFactory
interface Euclidean2DShapeFactory : GeometricShapeFactory<Euclidean2DPosition, Euclidean2DTransformation> (source)
Defines a factory of Shape for a bidimensional euclidean space.
Functions
Link copied to clipboard
A special shape which does not occupy space and does not intersect with any other, not even with itself.
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 the ones provided by this factory, otherwise throws an exception.