Generic matrix. More...
Public Member Functions | |
Matrix (Matrix m) | |
Matrix copy constructor. | |
Matrix (Matrix m, int c, int r) | |
Complement matrix constructor. | |
Matrix (int c, int r) | |
Matrix constructor. | |
virtual object | Clone () |
Clone this Matrix. | |
virtual float | GetDeterminant () |
SquareMatrix determinant. | |
virtual Matrix4x4 | GetInverseMatrix () |
Inverse SquareMatrix of this SquareMatrix. | |
void | Set (Matrix m) |
Set to arbitrary matrix. | |
void | SetIdentity () |
Set to identity matrix. | |
void | SetVoid () |
Set to void matrix. | |
override string | ToString () |
Stringify this Matrix. | |
Matrix | Transpose () |
Compute the transpose of this Matrix. | |
Static Public Member Functions | |
static | operator float[] (Matrix a) |
Convert a Matrix to an array of float. | |
static Matrix | operator* (Matrix m1, Matrix m2) |
Multiply two Matrix. | |
static Matrix | operator* (Matrix m, float scalar) |
Multiply a matrix with a scalar value. | |
static Matrix | operator+ (Matrix m1, Matrix m2) |
Sum two Matrix. | |
static Matrix | operator/ (Matrix m, float scalar) |
Divide a matrix with a scalar value. | |
Properties | |
int | Height [get] |
Matrix height (row count). | |
float | this [int c, int r] [get, set] |
Matrix component indexer. | |
int | Width [get] |
Matrix width (column count). |
Generic matrix.
Derm.Render.Matrix.Matrix | ( | int | c, | |
int | r | |||
) |
Matrix constructor.
c | A System.Int32 specifying the matrix colum count. | |
r | A System.Int32 specifying the matrix row count. |
Derm.Render.Matrix.Matrix | ( | Matrix | m, | |
int | c, | |||
int | r | |||
) |
Complement matrix constructor.
m | A Matrix | |
c | A System.Int32 | |
r | A System.Int32 |
Derm.Render.Matrix.Matrix | ( | Matrix | m | ) |
virtual object Derm.Render.Matrix.Clone | ( | ) | [virtual] |
Clone this Matrix.
Reimplemented in Derm.Render.Matrix4x4, Derm.Render.ModelMatrix, and Derm.Render.ProjectionMatrix.
virtual float Derm.Render.Matrix.GetDeterminant | ( | ) | [virtual] |
SquareMatrix determinant.
The function is virtual to provide a way to optimize this function. Optimization are possible when the size of the square matrix is known. It's possible to implement ASM code using MMX and SSE instructions to speed up the implementation, when the matrix extents are known.
virtual Matrix4x4 Derm.Render.Matrix.GetInverseMatrix | ( | ) | [virtual] |
Inverse SquareMatrix of this SquareMatrix.
System.Exception | In the case the SquareMatrix in singular an exception is thrown. |
static Derm.Render.Matrix.operator float[] | ( | Matrix | a | ) | [explicit, static] |
void Derm.Render.Matrix.Set | ( | Matrix | m | ) |
Set to arbitrary matrix.
m | A SquareMatrix |
void Derm.Render.Matrix.SetIdentity | ( | ) |
Set to identity matrix.
void Derm.Render.Matrix.SetVoid | ( | ) |
Set to void matrix.
override string Derm.Render.Matrix.ToString | ( | ) |
Matrix Derm.Render.Matrix.Transpose | ( | ) |
int Derm.Render.Matrix.Height [get] |
Matrix height (row count).
float Derm.Render.Matrix.this[int c, int r] [get, set] |
Matrix component indexer.
c | A System.Int32 | |
r | A System.Int32 |
int Derm.Render.Matrix.Width [get] |
Matrix width (column count).