GeometricShapeFactory

Generic factory for Shape instances.

Type Parameters

S

the Vector type used by the shapes created by this factory.

A

the Transformation type supported by the shapes.

Inheritors

Types

Link copied to clipboard
object Companion

Factory methods for Shape.

Functions

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

A special shape that occupies no space and does not intersect any other shape.

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

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