Matrix3x3f class
From Solid Graphics Wiki
(Redirected from Matrix3x3f)
| ||||||||||||
The Matrix3x3f class is representation of 3x3 matrix of float values. The class is used mainly for rotational transformation of points and types derived or using the Point class, such as PointList class or Shape class.
Constructors
Default Matrix3x3f class constructor does not initialize the matrix fields to any value. This is on purpose for performance reasons. Use Initialize method to set the matrix values into the "identity matrix" state.
Default copy constructor can be used to copy one Matrix3x3f object to another.
Fields
| Field name | Type | Description |
| value | float[ 9 ] | Array of nine matrix's float values. |
Methods
| Method name | Description |
| Initialize | Initializes the matrix to the "identity matrix" values. Identity matrix is an matrix which when it is used to transform a point coordinates the transformation will not modify the point coordinates. |
| RotateXYZ | Modifies matrix by adding rotation first around X, then Y, and then Z axis. |
| RotateZYX | Modifies matrix by adding rotation first around Z, then Y, and then X axis. |
| RotateYXZ | Modifies matrix by adding rotation first around Y, then X, and then Z axis. |
| RotateZXY | Modifies matrix by adding rotation first around Z, then X, and then Y axis. |
| InverseRotateXYZ | Modifies the matrix values by adding rotation inverse to the RotateXYZ method. |
| InverseRotateZYX | Modifies the matrix values by adding rotation inverse to the RotateZYX method. |
| InverseRotateYXZ | Modifies the matrix values by adding rotation inverse to the RotateYXZ method. |
| InverseRotateZXY | Modifies the matrix values by adding rotation inverse to the RotateZXY method. |
| GetRotationAnglesXYZ | Retrieves X, Y, Z angle values (in degrees) of XYZ rotation which the current matrix's value field values represent. |
| GetRotationAnglesZYX | Retrieves Z, Y, X angle values (in degrees) of XYZ rotation which the current matrix's value field values represent. |
| GetRotationAnglesYXZ | Retrieves Y, X, Z angle values (in degrees) of XYZ rotation which the current matrix's value field values represent. |
| GetRotationAnglesZXY | Retrieves Z, X, Y angle values (in degrees) of XYZ rotation which the current matrix's value field values represent. |
| Scale | Scales matrix values by given factor. |
| Transpose | Transposes the matrix values. |
Operators
| = | Assigns another Matrix3x3f, Matrix3x3d, or Matrix4x4f or Matrix4x4d to the matrix instance |
| const float* | Returns const pointer to the nine matrix's float values. |
| float* | Returns pointer to the nine matrix's float values. |
| *= | Multiplies the matrix with other Matrix3x3f instance. |
See Also
SolidKit Library Documentation
