#include <pyfbsdk.h>
Public Member Functions | |
FBMatrix (list pValue) | |
Constructor. | |
FBMatrix (FBMatrix pMatrix) | |
Copy Constructor. | |
Identity () | |
Load identity matrix. | |
Set (list pValue) | |
Set matrix from an array. | |
int | __len__ () |
Returns the number of elements. | |
float | __getitem__ (int pIndex) |
Returns the ith component Corresponds to python: print matrix[1]. | |
__setitem__ (int pIndex, float pComponentValue) | |
Sets the ith components Corresponds to python: color[1] = 0.5. | |
FBMatrix () | |
Constructor Initializes matrix to identity. | |
FBMatrix (list pValue) | |
Constructor. | |
FBMatrix (FBMatrix pMatrix) | |
Copy Constructor. | |
FBMatrix | Inverse () |
Get Inversed matrix. | |
FBMatrix | InverseProduct (FBMatrix pMatrix) |
InverseProduct Matrix. | |
FBMatrix | Transpose () |
Get Transposed matrix. | |
bool | Validate () |
Validated matrix. | |
FBMatrix class.
Four x Four (double) Matrix.
This class creates a list like object, which can be modified using the list protocol method. But unlike lists, its length is fixed: it always contain 16 floating point values. Thus it does not support the any list methods that would affect its length. The values within can be changed, usually via the bracket operator.
FBMatrix | ( | ) |
Constructor Initializes matrix to identity.
Returns the ith component Corresponds to python: print matrix[1].
pIndex | Index of the components to get (0 to 15) |
int __len__ | ( | ) |
Returns the number of elements.
Corresponds to python: len(object)
Sets the ith components Corresponds to python: color[1] = 0.5.
pIndex | Index of the components to set (0 to 15) |
pComponentValue | Value of component to set |
Identity | ( | ) |
Load identity matrix.
FBMatrix Inverse | ( | ) |
Get Inversed matrix.
InverseProduct Matrix.
pMatrix | Matrix to Product. |
Set | ( | list | pValue | ) |
Set matrix from an array.
pValue | Array to intialize matrix from. |
FBMatrix Transpose | ( | ) |
Get Transposed matrix.
bool Validate | ( | ) |
Validated matrix.