Matrix3C
Matrix3C class defines a 2 by 3 matrix class which is used by the Demopaja system The matrix class implements standard set of methods and overdriven operators for easy use.
This class is implemented by the system.
Header: | Matrix3C.h |
Library: | core.lib |
Matrix3C(
|
Creates a new vector with the values as the array pointed by the argument. The array should contain 6 values, 2 for each row in the matrix. The rows are in the array continously.
Matrix3C operator*(
|
Multiplies two matrices and returns the result.
Matrix3C& operator*=(
|
Multiplies two matrices and stores the result.
Vector3C& operators[](
|
Vector3C& operators[](
|
Reference to the vector at a row pointed by the index.
The index values from 0 to 2 corresponds to the rows in the matrix. There are two versions of this method, the first enables to assign values and the second is for retrieving the values.
Matrix3C& set_identity();
|
Reference to the matrix.
Sets the matrix as identity matrix
Matrix3C& set_trans(
|
Sets the matrix to identity and then translates the matrix to the value of the argument.
Matrix3C& set_scale(
|
Sets the matrix to identity and then scales the matrix to the value of the argument.
Matrix3C& set_rot_x(
|
Sets the matrix to identity and then rotates the matrix around the X-axis to the value of the argument.
Matrix3C& set_rot_y(
|
Sets the matrix to identity and then rotates the matrix around the Y-axis to the value of the argument.
Matrix3C& set_rot_z(
|
Sets the matrix to identity and then rotates the matrix around the Z-axis to the value of the argument.
Matrix3C& set_rot_xyz(
|
Sets the matrix to identity and then rotates the matrix to the values of the arguments. The rotation order is XYZ.
Matrix3C& set_rot(
|
Converts quaternion to matrix and stores the result to the matrix.
friend Vector3C operator*(
|
Multiplies the specified vector by the specified matrix and returns the result.
friend Vector3C operator*(
|
Multiplies the specified vector by the specified matrix and returns the result.
friend Vector3C operator*(
|
Multiplies the specified vector by the specified matrix and stores the result to the vector.
Matrix3C pre_trans(
|
Pretranslates the matrix and returns the result.
Matrix3C invert() const;
|
Inverts the matrix and returns the result.
Matrix3C transpose() const
|
Transposes the matrix and returns the result.
Matrix3C ortho_norm() const
|
Ortho normalizes the matrix and returns the result.
Copyright © 2000 Moppi Productions