PyEVSpace API#

PyEVSpace Documentation#

The documentation for the package is split into four sections: Vector, Matrix, Rotation and ReferenceFrame APIs.

Note

The underlying data type of the internal array is a C type double. This obviously supports any type that can be represented as a Python float, which includes Python int types. Therefore numeric types are interpreted in the following order:

  1. floats are converted to a C double

  2. A conversion is attempted with the type’s __float__() method

  3. A conversion is attempted with the type’s __index__() method

  4. No suitable conversion can be made and a TypeError is raised

Therefore in this documentation a numeric type is any type that is either a float or int or can be converted to a float or int.