Derm.Render.Matrix Class Reference

Generic matrix. More...

Inheritance diagram for Derm.Render.Matrix:
Derm.Render.Matrix4x4 Derm.Render.ModelMatrix Derm.Render.ProjectionMatrix

List of all members.

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).

Detailed Description

Generic matrix.


Constructor & Destructor Documentation

Derm.Render.Matrix.Matrix ( int  c,
int  r 
)

Matrix constructor.

Parameters:
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.

Parameters:
m A Matrix
c A System.Int32
r A System.Int32
Derm.Render.Matrix.Matrix ( Matrix  m  ) 

Matrix copy constructor.

Parameters:
m A Matrix to be copied.

Member Function Documentation

virtual object Derm.Render.Matrix.Clone (  )  [virtual]

Clone this Matrix.

Returns:
It returns a deep copy of 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.

Returns:
A SquareMatrix representing the inverse matrix of this SquareMatrix. of this
Exceptions:
System.Exception In the case the SquareMatrix in singular an exception is thrown.
static Derm.Render.Matrix.operator float[] ( Matrix  a  )  [explicit, static]

Convert a Matrix to an array of float.

Parameters:
a A Matrix to be convertex.
Returns:
It returns an array of System.Float represeting the matrix a .
static Matrix Derm.Render.Matrix.operator* ( Matrix  m1,
Matrix  m2 
) [static]

Multiply two Matrix.

Parameters:
m1 A Matrix specifying the left multiplication operand.
m2 A Matrix specifying the right multiplication operand.
Returns:
A Matrix resulting from the product of the matrix m1 and the matrix m2 .
static Matrix Derm.Render.Matrix.operator* ( Matrix  m,
float  scalar 
) [static]

Multiply a matrix with a scalar value.

Parameters:
m A Matrix
scalar A System.Single
Returns:
A Matrix
static Matrix Derm.Render.Matrix.operator+ ( Matrix  m1,
Matrix  m2 
) [static]

Sum two Matrix.

Parameters:
m1 A Matrix specifying the left Matrix.
m2 A Matrix specifying the right Matrix.
Returns:
A Matrix resulting from the sum of the two Matrix specified as parameters.
static Matrix Derm.Render.Matrix.operator/ ( Matrix  m,
float  scalar 
) [static]

Divide a matrix with a scalar value.

Parameters:
m A Matrix
scalar A System.Single
Returns:
A Matrix
void Derm.Render.Matrix.Set ( Matrix  m  ) 

Set to arbitrary matrix.

Parameters:
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 (  ) 

Stringify this Matrix.

Returns:
Returns a System.String that represents this Matrix.
Matrix Derm.Render.Matrix.Transpose (  ) 

Compute the transpose of this Matrix.

Returns:
A Matrix which hold the transpose of this Matrix.

Property Documentation

int Derm.Render.Matrix.Height [get]

Matrix height (row count).

float Derm.Render.Matrix.this[int c, int r] [get, set]

Matrix component indexer.

Parameters:
c A System.Int32
r A System.Int32
int Derm.Render.Matrix.Width [get]

Matrix width (column count).



Services powered by Get Deus Ex Render Machina at SourceForge.net. Fast, secure and Free Open Source software downloads