The vector classes of the MAXON API are based on these generic vector templates:
For basic data types see Basic Data Types.
Two-component vectors contain these members:
maxon::Float based vector classes are:
maxon::Int based vector classes are:
Three-component vectors contain these members:
maxon::Float based vector classes are:
maxon::Int based vector classes are:
Four-component vectors contain these members:
maxon::Float based vector classes are:
maxon::Int based vector classes are:
A member of a vector can be simply accessed directly or by using the "[]" operator:
The length or a vector can be calculated with:
If all components of a given vector are zero, it can be checked with:
The sum of all vector components is calculated with:
The vector values can further be edited with:
Further values are accessed with:
A subset of the vector can be obtained with:
A vector can be constructed and changed with the following operators:
Two vectors can be compared with:
Vector related mathematical functions are:
For vectors defining a color value the explicit class maxon::Color exists:
Further utility functions are:
Color specific utility functions are: