|
Assimp
v3.1.1 (June 2014)
|
aiMatrix3x3t< TReal > Class Template Reference
Represents a row-major 3x3 matrix.
More...
Public Attributes |
| union { |
| struct { |
| TReal a1 |
| |
| TReal a2 |
| |
| TReal a3 |
| |
| TReal b1 |
| |
| TReal b2 |
| |
| TReal b3 |
| |
| TReal c1 |
| |
| TReal c2 |
| |
| TReal c3 |
| |
| } | |
| |
| TReal m [3][3] |
| |
| TReal mData [9] |
| |
| }; | |
| |
Detailed Description
template<typename TReal>
class aiMatrix3x3t< TReal >
Represents a row-major 3x3 matrix.
There's much confusion about matrix layouts (column vs. row order). This is always a row-major matrix. Not even with the aiProcess_ConvertToLeftHanded flag, which absolutely does not affect matrix order - it just affects the handedness of the coordinate system defined thereby.
Constructor & Destructor Documentation
template<typename TReal >
template<typename TReal >
| aiMatrix3x3t< TReal >::aiMatrix3x3t |
( |
TReal |
_a1, |
|
|
TReal |
_a2, |
|
|
TReal |
_a3, |
|
|
TReal |
_b1, |
|
|
TReal |
_b2, |
|
|
TReal |
_b3, |
|
|
TReal |
_c1, |
|
|
TReal |
_c2, |
|
|
TReal |
_c3 |
|
) |
| |
|
inline |
template<typename TReal >
Construction from a 4x4 matrix.
The remaining parts of the matrix are ignored.
Member Function Documentation
template<typename TReal >
template<typename TReal >
template<typename TReal >
A function for creating a rotation matrix that rotates a vector called "from" into another vector called "to".
Input : from[3], to[3] which both must be normalized non-zero vectors Output: mtx[3][3] – a 3x3 matrix in colum-major form Authors: Tomas M�ller, John Hughes "Efficiently Building a Matrix to Rotate One Vector to Another" Journal of Graphics Tools, 4(4):1-4, 1999
template<typename TReal >
Invert the matrix.
If the matrix is not invertible all elements are set to qnan. Beware, use (f != f) to check whether a TReal f is qnan.
template<typename TReal >
template<typename TOther >
template<typename TReal >
template<typename TReal >
template<typename TReal >
template<typename TReal >
template<typename TReal >
| TReal * aiMatrix3x3t< TReal >::operator[] |
( |
unsigned int |
p_iIndex | ) |
|
|
inline |
template<typename TReal >
| const TReal * aiMatrix3x3t< TReal >::operator[] |
( |
unsigned int |
p_iIndex | ) |
const |
|
inline |
template<typename TReal >
Returns a rotation matrix for a rotation around an arbitrary axis.
- Parameters
-
| a | Rotation angle, in radians |
| axis | Axis to rotate around |
| out | To be filled |
template<typename TReal >
Returns a rotation matrix for a rotation around z.
- Parameters
-
| a | Rotation angle, in radians |
| out | Receives the output matrix |
- Returns
- Reference to the output matrix
template<typename TReal >
Returns a translation matrix.
- Parameters
-
| v | Translation vector |
| out | Receives the output matrix |
- Returns
- Reference to the output matrix
template<typename TReal >
Member Data Documentation
template<typename TReal >
template<typename TReal >
template<typename TReal >
template<typename TReal >
template<typename TReal >
template<typename TReal >
template<typename TReal >
template<typename TReal >
template<typename TReal >
template<typename TReal >
template<typename TReal >
The documentation for this class was generated from the following files: