surfa.transform.space.cast_space#

surfa.transform.space.cast_space(obj, allow_none=True, copy=False)#

Cast object to coordinate Space.

Parameters
  • obj (any) – Object to cast.

  • allow_none (bool) – Allow for None to be successfully passed and returned by cast.

Returns

Casted coordinate space.

Return type

Space or None