requireCompatible

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.

Return

the same shape

Parameters

shape

the shape to check