Matrix3x3d class

From Solid Graphics Wiki

(Redirected from Matrix3x3d)
Jump to: navigation, search
Matrix3x3d class
Namespace: SKL3D
Base type: (None)
Include: Skl3D.h
Lib (Release): SKL.lib
Lib (Debug): SKL_D.lib

The Matrix3x3d class is representation of 3x3 matrix of double values. The class is used mainly for rotational transformation of points and types derived or using the Pointd class, such as PointdArray class or Shape class.


Constructors

Default Matrix3x3d 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 Matrix3x3d object to another.

Fields

Field name Type Description
value double[ 9 ] Array of nine matrix's double 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 double* Returns const pointer to the nine matrix's double values.
double* Returns pointer to the nine matrix's double values.
*= Multiplies the matrix with other Matrix3x3d instance.

See Also

   


SolidKit Library Documentation

Personal tools