Matrix2C
Matrix2C 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: | Matrix2C.h |
| Library: | core.lib |
Matrix2C(
|
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.
Matrix2C operator*(
|
Multiplies two matrices and returns the result.
Matrix2C& operator*=(
|
Multiplies two matrices and stores the result.
Vector2C& operators[](
|
Vector2C& 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.
Matrix2C& set_identity();
|
Reference to the matrix.
Sets the matrix as identity matrix
Matrix2C& set_trans(
|
Sets the matrix to identity and then translates the matrix to the value of the argument.
Matrix2C& set_scale(
|
Sets the matrix to identity and then scales the matrix to the value of the argument.
Matrix2C& set_rot(
|
Sets the matrix to identity and then rotates the matrix to the value of the argument.
friend Vector2C operator*(
|
Multiplies the specified vector by the specified matrix and returns the result.
friend Vector2C operator*(
|
Multiplies the specified vector by the specified matrix and returns the result.
friend Vector2C operator*(
|
Multiplies the specified vector by the specified matrix and stores the result to the vector.
Matrix2C pre_trans(
|
Pretranslates the matrix and returns the result.
Matrix2C invert() const;
|
Inverts the matrix and returns the result.
Matrix2C transpose() const
|
Transposes the matrix and returns the result.
Matrix2C ortho_norm() const
|
Ortho normalizes the matrix and returns the result.
Copyright © 2000 Moppi Productions