vecrec.cast_anything_to_rectangle

vecrec.cast_anything_to_rectangle(input)[source]

Convert the given input to a rectangle if possible, otherwise raise a RectCastError. The following types can be converted to a rectangle: