Data types


Each data type resides in its own module named after the specified type.

Where there may be multiple versions of a data type, each version is located in its own module.

Functions which are able to handle all versions of a data type are located in the central module. Otherwise, functions reside in the specific data type’s module.

For example:

  • Provides functions for creating and manipulating 3D vectors (x,y,z).
  • Provides functions for creating and manipulating 4D vectors (x,y,z,w).
  • Provides functions that work with both 3D and 4D vectors.


Data conversion functions are provided in the module of the type being converted to.

For example:

# module
def create_from_matrix33(mat) :

def create_from_eulers(eulers):

def create_from_quaternion(quat):