vecrec.cast_shape_to_rectangle

vecrec.cast_shape_to_rectangle(input)[source]

Convert the given shape to a rectangle if possible, otherwise raise a RectCastError.