Derm.Render.Vertex2f Struct Reference

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

Inheritance diagram for Derm.Render.Vertex2f:
Derm.Render.IVertex2 Derm.Render.IVertex

List of all members.

Public Member Functions

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

Static Public Member Functions

static Vertex2f operator* (Vertex2f v1, float scalar)
 Scalar multiply operator.
static Vertex2f operator+ (Vertex2f v1, Vertex2f v2)
 Add operator.
static Vertex2f operator- (Vertex2f v1, Vertex2f v2)
 Subtract operator.
static Vertex2f operator- (Vertex2f v1)
 Negate operator.
static Vertex2f operator/ (Vertex2f v1, float scalar)
 Scalar divide operator.

Public Attributes

float x
 X coordinate for bidimensional vertex.
float y
 Y coordinate for bidimensional 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.

Detailed Description

Bidimensional vertex value type (float coordinates).


Constructor & Destructor Documentation

Derm.Render.Vertex2f.Vertex2f ( float  x,
float  y 
)

Vertex2f constructor.

Parameters:
x A System.Single
y A System.Single
Derm.Render.Vertex2f.Vertex2f ( float[]  v  ) 

Vertex2f constructor.

Parameters:
v A System.Single

Member Function Documentation

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

Get the type of the components of this IVertex.

Returns:
A System.Type

Implements Derm.Render.IVertex.

int Derm.Render.Vertex2f.GetComponentsCount (  ) 

Get the number of the components of this Vertex3d.

Returns:
It returns 3. A System.Int32

Implements Derm.Render.IVertex.

float Derm.Render.Vertex2f.Module (  ) 

Compute bidimensional vertex module.

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

Normalize vertex coordinates.

static Vertex2f Derm.Render.Vertex2f.operator* ( Vertex2f  v1,
float  scalar 
) [static]

Scalar multiply operator.

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

Add operator.

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

Subtract operator.

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

Negate operator.

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

Scalar divide operator.

Parameters:
v1 A Vertex2f
scalar A System.Single
Returns:
A Vertex2f

Member Data Documentation

X coordinate for bidimensional vertex.

Y coordinate for bidimensional vertex.


Property Documentation

float Derm.Render.Vertex2f.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.Vertex2f.X [get, set]

Vertex coordinate X.

Implements Derm.Render.IVertex2.

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

Vertex coordinate Y.

Implements Derm.Render.IVertex2.



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