getInstance
inline fun <S : Vector<S>, A : Transformation<S>, F : GeometricShapeFactory<S, A>> getInstance(): F(source)
Retrieves a factory of Shape compatible with the given vector and transformation types.
Return
an instance of the requested factory interface F.
Type Parameters
S
The type of vector used.
A
The supported geometric transformations.
F
The factory interface requested.
fun <S : Vector<S>, A : Transformation<S>, F : GeometricShapeFactory<S, A>> getInstance(type: Class<F>): F(source)
Retrieves a factory of Shape compatible with the given space (Java-friendly overload).
Return
an instance of the requested factory interface F.
Parameters
type
the Class object representing the requested factory interface.
Type Parameters
S
The type of vector used.
A
The supported geometric transformations.
F
The factory interface requested.