|
Project Information
Members
Links
|
vectypes provides 2, 3 and 4-element vector and matrix types for Python using an API very similar to GLSL. The types provided are:
Binary operators are overloaded for component-wise operations between a vector or matrix and a scalar, between two vectors, and between two matrices. Multiplication can also be done between a row vector and a matrix, between a matrix and a column vector, and between two matrices. Additionally, the following vector and matrix functions are implemented:
The module is provided as a single source file that can be distributed without requiring installation, or generated from template sources if customisation is desired. |