AbstractShapeFactory

abstract class AbstractShapeFactory<S : Vector<S>, A : GeometricTransformation<S>> : GeometricShapeFactory<S, A>

Base class for GeometricTransformation providing a standard implementation for GeometricShapeFactory.adimensional.

Constructors

Link copied to clipboard
fun AbstractShapeFactory()

Functions

Link copied to clipboard
open override fun adimensional(): AdimensionalShape<S, A>

A special shape which does not occupy space and does not intersect with any other, not even with itself.

Link copied to clipboard
abstract fun requireCompatible(shape: GeometricShape<*, *>): GeometricShape<S, A>

Requires that the given shape is compatible with the ones provided by this factory, otherwise throws an exception.