Model matrix implementation. More...
Public Member Functions | |
ModelMatrix (ModelMatrix m) | |
ModelMatrix copy constructor. | |
ModelMatrix () | |
ModelMatrix constructor. | |
override object | Clone () |
Clone this ModelMatrix. | |
void | GetScale (out float x, out float y) |
Get scaling factor of this ModelMatrix. | |
void | GetScale (out float x, out float y, out float z) |
Get scaling factor of this ModelMatrix. | |
void | GetScale (out Vertex2f s) |
Get scaling factor of this ModelMatrix. | |
void | GetScale (out Vertex3f s) |
Get scaling factor of this ModelMatrix. | |
void | GetTranslate (out float x, out float y) |
Get translation of this ModelMatrix. | |
void | GetTranslate (out float x, out float y, out float z) |
Get translation of this ModelMatrix. | |
void | GetTranslate (Vertex2f p) |
Get translation of this ModelMatrix. | |
void | GetTranslate (out Vertex3f p) |
Get translation of this ModelMatrix. | |
void | Rotate (Quaternion q) |
Rotate this ModelMatrix. | |
void | Scale (float s) |
Scale this ModelMatrix. | |
void | Scale (float x, float y) |
Scale this ModelMatrix. | |
void | Scale (float x, float y, float z) |
Scale this ModelMatrix. | |
void | Scale (Vertex2f s) |
Scale this ModelMatrix. | |
void | Scale (Vertex3f s) |
Scale this ModelMatrix. | |
void | Translate (float x, float y) |
Translate this ModelMatrix. | |
void | Translate (float x, float y, float z) |
Translate this ModelMatrix. | |
void | Translate (Vertex2f p) |
Translate this ModelMatrix. | |
void | Translate (Vertex3f p) |
Translate this ModelMatrix. | |
Static Public Member Functions | |
static ModelMatrix | operator* (ModelMatrix m1, ModelMatrix m2) |
Concatenate two ModelMatrix transformations. | |
static ModelMatrix | operator* (ModelMatrix m, Quaternion q) |
Rotate a ModelMatrix in three-dimensional space using Quaternion. | |
static ModelMatrix | operator+ (ModelMatrix m, Vertex2f v) |
Translate a ModelMatrix in three-dimensional space. | |
static ModelMatrix | operator+ (ModelMatrix m, Vertex3f v) |
Translate a ModelMatrix in three-dimensional space. | |
static ModelMatrix | operator- (ModelMatrix m, Vertex2f v) |
Translate a ModelMatrix in two-dimensional space. | |
static ModelMatrix | operator- (ModelMatrix m, Vertex3f v) |
Translate a ModelMatrix in three-dimensional space. |
Model matrix implementation.
ModelMatrix class allow to manage a tranformation matrix. It is a 4x4 matrix of floating point values. These values are able to transform a vertex coordinate.
Derm.Render.ModelMatrix.ModelMatrix | ( | ) |
ModelMatrix constructor.
It set this ModelMatrix to identity.
Derm.Render.ModelMatrix.ModelMatrix | ( | ModelMatrix | m | ) |
ModelMatrix copy constructor.
m | A ModelMatrix to be copied. |
override object Derm.Render.ModelMatrix.Clone | ( | ) | [virtual] |
Clone this ModelMatrix.
Reimplemented from Derm.Render.Matrix4x4.
void Derm.Render.ModelMatrix.GetScale | ( | out float | x, | |
out float | y | |||
) |
Get scaling factor of this ModelMatrix.
x | A System.Single holding the scaling factor on X axis. | |
y | A System.Single holding the scaling factor on Y axis. |
void Derm.Render.ModelMatrix.GetScale | ( | out float | x, | |
out float | y, | |||
out float | z | |||
) |
Get scaling factor of this ModelMatrix.
x | A System.Single holding the scaling factor on X axis. | |
y | A System.Single holding the scaling factor on Y axis. | |
z | A System.Single holding the scaling factor on Z axis. |
void Derm.Render.ModelMatrix.GetScale | ( | out Vertex2f | s | ) |
Get scaling factor of this ModelMatrix.
s | A Vertex3f holding the scaling factors on two dimensions. |
void Derm.Render.ModelMatrix.GetScale | ( | out Vertex3f | s | ) |
Get scaling factor of this ModelMatrix.
s | A Vertex3f holding the scaling factors on three dimensions. |
void Derm.Render.ModelMatrix.GetTranslate | ( | out float | x, | |
out float | y | |||
) |
Get translation of this ModelMatrix.
x | A System.Float holding this ModelMatrix translation on X axis. | |
y | A System.Float holding this ModelMatrix translation on Y axis. |
void Derm.Render.ModelMatrix.GetTranslate | ( | out float | x, | |
out float | y, | |||
out float | z | |||
) |
Get translation of this ModelMatrix.
x | A System.Float holding this ModelMatrix translation on X axis. | |
y | A System.Float holding this ModelMatrix translation on Y axis. | |
z | A System.Float holding this ModelMatrix translation on Z axis. |
void Derm.Render.ModelMatrix.GetTranslate | ( | Vertex2f | p | ) |
Get translation of this ModelMatrix.
p | A Vertex2f holding the this ModelMatrix translation. |
void Derm.Render.ModelMatrix.GetTranslate | ( | out Vertex3f | p | ) |
Get translation of this ModelMatrix.
p | A Vertex3f holding the this ModelMatrix translation. |
static ModelMatrix Derm.Render.ModelMatrix.operator* | ( | ModelMatrix | m1, | |
ModelMatrix | m2 | |||
) | [static] |
Concatenate two ModelMatrix transformations.
m1 | A ModelMatrix specifying the left multiplication operand. | |
m2 | A ModelMatrix specifying the right multiplication operand. |
static ModelMatrix Derm.Render.ModelMatrix.operator* | ( | ModelMatrix | m, | |
Quaternion | q | |||
) | [static] |
static ModelMatrix Derm.Render.ModelMatrix.operator+ | ( | ModelMatrix | m, | |
Vertex2f | v | |||
) | [static] |
static ModelMatrix Derm.Render.ModelMatrix.operator+ | ( | ModelMatrix | m, | |
Vertex3f | v | |||
) | [static] |
static ModelMatrix Derm.Render.ModelMatrix.operator- | ( | ModelMatrix | m, | |
Vertex2f | v | |||
) | [static] |
static ModelMatrix Derm.Render.ModelMatrix.operator- | ( | ModelMatrix | m, | |
Vertex3f | v | |||
) | [static] |
void Derm.Render.ModelMatrix.Rotate | ( | Quaternion | q | ) |
Rotate this ModelMatrix.
q | A Quaternion representing the rotation. |
void Derm.Render.ModelMatrix.Scale | ( | float | s | ) |
Scale this ModelMatrix.
s | A System.Single holding the scaling factor on X, Y and Z axes. |
void Derm.Render.ModelMatrix.Scale | ( | float | x, | |
float | y | |||
) |
Scale this ModelMatrix.
x | A System.Single holding the scaling factor on X axis. | |
y | A System.Single holding the scaling factor on Y axis. |
void Derm.Render.ModelMatrix.Scale | ( | float | x, | |
float | y, | |||
float | z | |||
) |
Scale this ModelMatrix.
x | A System.Single holding the scaling factor on X axis. | |
y | A System.Single holding the scaling factor on Y axis. | |
z | A System.Single holding the scaling factor on Z axis. |
void Derm.Render.ModelMatrix.Scale | ( | Vertex2f | s | ) |
Scale this ModelMatrix.
s | A Vertex2f holding the scaling factors on two dimensions. |
void Derm.Render.ModelMatrix.Scale | ( | Vertex3f | s | ) |
Scale this ModelMatrix.
s | A Vertex3f holding the scaling factors on three dimensions. |
void Derm.Render.ModelMatrix.Translate | ( | float | x, | |
float | y | |||
) |
Translate this ModelMatrix.
x | A float indicating the translation on X axis. | |
y | A float indicating the translation on Y axis. |
void Derm.Render.ModelMatrix.Translate | ( | float | x, | |
float | y, | |||
float | z | |||
) |
Translate this ModelMatrix.
x | A float indicating the translation on X axis. | |
y | A float indicating the translation on Y axis. | |
z | A float indicating the translation on Z axis. |
void Derm.Render.ModelMatrix.Translate | ( | Vertex2f | p | ) |
Translate this ModelMatrix.
p | A Vertex2f specifying the translation. |
void Derm.Render.ModelMatrix.Translate | ( | Vertex3f | p | ) |
Translate this ModelMatrix.
p | A Vertex3f specifying the translation. |