require Compatible
abstract fun requireCompatible(shape: GeometricShape<*, *>): GeometricShape<S, A>
Content copied to clipboard
Requires that the given shape is compatible with the ones provided by this factory, otherwise throws an exception.
Return
the same shape
Parameters
shape
the shape to check