Derm.Render.Vertex3f Struct Reference

Tridimensional vertex value type (float coordinates). More...

Inheritance diagram for Derm.Render.Vertex3f:
Derm.Render.IVertex3 Derm.Render.IVertex

List of all members.

Public Member Functions

 Vertex3f (float x, float y, float z)
 Vertex3f constructor.
 Vertex3f (float[] v)
 Vertex3f constructor.
System.Type GetBaseType ()
 Get the type of the components of this IVertex.
int GetComponentsCount ()
 Get the number of the components of this IVertex.
float Module ()
 Compute bidimensional vertex module.
void Normalize ()
 Normalize vertex coordinates.
override string ToString ()
 Stringify this Vertex3f.

Static Public Member Functions

static operator float[] (Vertex3f a)
 Cast to float[] operator.
static operator Vertex2f (Vertex3f a)
 Cast to Vertex2f operator.
static operator Vertex3d (Vertex3f a)
 Cast to Vertex3d operator.
static Vertex3f operator% (Vertex3f v1, Vertex3f v2)
 Cross product operator.
static Vertex3f operator* (Vertex3f v, Matrix4x4 m)
 Transform vertex using transformation matrix.
static float operator* (Vertex3f v1, Vertex3f v2)
 Dot product operator.
static Vertex3f operator* (Vertex3f v1, float scalar)
 Scalar multiply operator.
static Vertex3f operator+ (Vertex3f v1, Vertex3f v2)
 Add operator.
static Vertex3f operator- (Vertex3f v1, Vertex3f v2)
 Subtract operator.
static Vertex3f operator- (Vertex3f v1)
 Negate operator.
static Vertex3f operator/ (Vertex3f v1, float scalar)
 Scalar divide operator.

Public Attributes

float x
 X coordinate for tridimensional vertex.
float y
 Y coordinate for tridimensional vertex.
float z
 Z coordinate for tridimensional vertex.

Properties

float this [int idx] [get, set]
 Vertex components indexer (cast to sbyte to float).
float X [get, set]
 Vertex coordinate X.
float Y [get, set]
 Vertex coordinate Y.
float Z [get, set]
 Vertex coordinate Z.

Detailed Description

Tridimensional vertex value type (float coordinates).


Constructor & Destructor Documentation

Derm.Render.Vertex3f.Vertex3f ( float[]  v  ) 

Vertex3f constructor.

Parameters:
v A System.Single
Derm.Render.Vertex3f.Vertex3f ( float  x,
float  y,
float  z 
)

Vertex3f constructor.

Parameters:
x A System.Single
y A System.Single

Member Function Documentation

System.Type Derm.Render.Vertex3f.GetBaseType (  ) 

Get the type of the components of this IVertex.

Returns:
It returns typeof(float). A System.Type

Implements Derm.Render.IVertex.

int Derm.Render.Vertex3f.GetComponentsCount (  ) 

Get the number of the components of this IVertex.

Returns:
It returns 3. A System.Int32

Implements Derm.Render.IVertex.

float Derm.Render.Vertex3f.Module (  ) 

Compute bidimensional vertex module.

Returns:
It returns the vertex vector module.
void Derm.Render.Vertex3f.Normalize (  ) 

Normalize vertex coordinates.

static Derm.Render.Vertex3f.operator float[] ( Vertex3f  a  )  [explicit, static]

Cast to float[] operator.

Parameters:
a A Vertex3f
Returns:
A Vertex3d
static Derm.Render.Vertex3f.operator Vertex2f ( Vertex3f  a  )  [explicit, static]

Cast to Vertex2f operator.

Parameters:
a A Vertex3f
Returns:
A Vertex2f
static Derm.Render.Vertex3f.operator Vertex3d ( Vertex3f  a  )  [explicit, static]

Cast to Vertex3d operator.

Parameters:
a A Vertex3f
Returns:
A Vertex3d
static Vertex3f Derm.Render.Vertex3f.operator% ( Vertex3f  v1,
Vertex3f  v2 
) [static]

Cross product operator.

Parameters:
v1 A Vertex3f representing the left cross product operand.
v2 A Vertex3f representing the right cross product operand.
Returns:
A Vertex3f representing the cross product between v1 and v2 .
static Vertex3f Derm.Render.Vertex3f.operator* ( Vertex3f  v,
Matrix4x4  m 
) [static]

Transform vertex using transformation matrix.

Parameters:
v1 A Vertex3f representing the vertex to be transformed.
m A Matrix4x4 representing the transformation matrix.
Returns:
It returns a Vertex3f which represents the transformed vertex.
static float Derm.Render.Vertex3f.operator* ( Vertex3f  v1,
Vertex3f  v2 
) [static]

Dot product operator.

Parameters:
v1 A Vertex3f representing the left dot product operand.
v2 A Vertex3f representing the right dot product operand.
Returns:
A Vertex3f representing the dot product between v1 and v2 .
static Vertex3f Derm.Render.Vertex3f.operator* ( Vertex3f  v1,
float  scalar 
) [static]

Scalar multiply operator.

Parameters:
v1 A Vertex3f
scalar A System.Single
Returns:
A Vertex2f
static Vertex3f Derm.Render.Vertex3f.operator+ ( Vertex3f  v1,
Vertex3f  v2 
) [static]

Add operator.

Parameters:
v1 A Vertex2f
v2 A Vertex2f
Returns:
A Vertex2f
static Vertex3f Derm.Render.Vertex3f.operator- ( Vertex3f  v1,
Vertex3f  v2 
) [static]

Subtract operator.

Parameters:
v1 A Vertex2f
v2 A Vertex2f
Returns:
A Vertex2f
static Vertex3f Derm.Render.Vertex3f.operator- ( Vertex3f  v1  )  [static]

Negate operator.

Parameters:
v1 
Returns:
It returns the negate of v1.
static Vertex3f Derm.Render.Vertex3f.operator/ ( Vertex3f  v1,
float  scalar 
) [static]

Scalar divide operator.

Parameters:
v1 A Vertex2f
scalar A System.Single
Returns:
A Vertex2f
override string Derm.Render.Vertex3f.ToString (  ) 

Stringify this Vertex3f.

Returns:
Returns a System.String that represents this Vertex3f.

Member Data Documentation

X coordinate for tridimensional vertex.

Y coordinate for tridimensional vertex.

Z coordinate for tridimensional vertex.


Property Documentation

float Derm.Render.Vertex3f.this[int idx] [get, set]

Vertex components indexer (cast to sbyte to float).

Parameters:
idx A System.Int32

Implements Derm.Render.IVertex.

float Derm.Render.Vertex3f.X [get, set]

Vertex coordinate X.

Implements Derm.Render.IVertex3.

float Derm.Render.Vertex3f.Y [get, set]

Vertex coordinate Y.

Implements Derm.Render.IVertex3.

float Derm.Render.Vertex3f.Z [get, set]

Vertex coordinate Z.

Implements Derm.Render.IVertex3.



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