Derm.Render.ModelMatrix Class Reference

Model matrix implementation. More...

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

List of all members.

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.

Detailed Description

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.


Constructor & Destructor Documentation

Derm.Render.ModelMatrix.ModelMatrix (  ) 

ModelMatrix constructor.

It set this ModelMatrix to identity.

Derm.Render.ModelMatrix.ModelMatrix ( ModelMatrix  m  ) 

ModelMatrix copy constructor.

Parameters:
m A ModelMatrix to be copied.

Member Function Documentation

override object Derm.Render.ModelMatrix.Clone (  )  [virtual]

Clone this ModelMatrix.

Returns:
It returns a deep copy of this ModelMatrix.

Reimplemented from Derm.Render.Matrix4x4.

void Derm.Render.ModelMatrix.GetScale ( out float  x,
out float  y 
)

Get scaling factor of this ModelMatrix.

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

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

Parameters:
s A Vertex3f holding the scaling factors on two dimensions.
void Derm.Render.ModelMatrix.GetScale ( out Vertex3f  s  ) 

Get scaling factor of this ModelMatrix.

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

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

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

Parameters:
p A Vertex2f holding the this ModelMatrix translation.
void Derm.Render.ModelMatrix.GetTranslate ( out Vertex3f  p  ) 

Get translation of this ModelMatrix.

Parameters:
p A Vertex3f holding the this ModelMatrix translation.
static ModelMatrix Derm.Render.ModelMatrix.operator* ( ModelMatrix  m1,
ModelMatrix  m2 
) [static]

Concatenate two ModelMatrix transformations.

Parameters:
m1 A ModelMatrix specifying the left multiplication operand.
m2 A ModelMatrix specifying the right multiplication operand.
Returns:
A ModelMatrix resulting from the product of the matrix m1 and the matrix m2 . This operator is used to concatenate successive transformations.
static ModelMatrix Derm.Render.ModelMatrix.operator* ( ModelMatrix  m,
Quaternion  q 
) [static]

Rotate a ModelMatrix in three-dimensional space using Quaternion.

Parameters:
m 
q 
Returns:
static ModelMatrix Derm.Render.ModelMatrix.operator+ ( ModelMatrix  m,
Vertex2f  v 
) [static]

Translate a ModelMatrix in three-dimensional space.

Parameters:
m 
v 
Returns:
static ModelMatrix Derm.Render.ModelMatrix.operator+ ( ModelMatrix  m,
Vertex3f  v 
) [static]

Translate a ModelMatrix in three-dimensional space.

Parameters:
m 
v 
Returns:
static ModelMatrix Derm.Render.ModelMatrix.operator- ( ModelMatrix  m,
Vertex2f  v 
) [static]

Translate a ModelMatrix in two-dimensional space.

Parameters:
m 
v 
Returns:
static ModelMatrix Derm.Render.ModelMatrix.operator- ( ModelMatrix  m,
Vertex3f  v 
) [static]

Translate a ModelMatrix in three-dimensional space.

Parameters:
m 
v 
Returns:
void Derm.Render.ModelMatrix.Rotate ( Quaternion  q  ) 

Rotate this ModelMatrix.

Parameters:
q A Quaternion representing the rotation.
void Derm.Render.ModelMatrix.Scale ( float  s  ) 

Scale this ModelMatrix.

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

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

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

Parameters:
s A Vertex2f holding the scaling factors on two dimensions.
void Derm.Render.ModelMatrix.Scale ( Vertex3f  s  ) 

Scale this ModelMatrix.

Parameters:
s A Vertex3f holding the scaling factors on three dimensions.
void Derm.Render.ModelMatrix.Translate ( float  x,
float  y 
)

Translate this ModelMatrix.

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

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

Parameters:
p A Vertex2f specifying the translation.
void Derm.Render.ModelMatrix.Translate ( Vertex3f  p  ) 

Translate this ModelMatrix.

Parameters:
p A Vertex3f specifying the translation.


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