Bidimensional vertex value type (float coordinates). More...
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. |
Bidimensional vertex value type (float coordinates).
Derm.Render.Vertex2f.Vertex2f | ( | float | x, | |
float | y | |||
) |
Vertex2f constructor.
x | A System.Single | |
y | A System.Single |
Derm.Render.Vertex2f.Vertex2f | ( | float[] | v | ) |
Vertex2f constructor.
v | A System.Single |
System.Type Derm.Render.Vertex2f.GetBaseType | ( | ) |
Get the type of the components of this IVertex.
Implements Derm.Render.IVertex.
int Derm.Render.Vertex2f.GetComponentsCount | ( | ) |
Get the number of the components of this Vertex3d.
Implements Derm.Render.IVertex.
float Derm.Render.Vertex2f.Module | ( | ) |
Compute bidimensional vertex module.
void Derm.Render.Vertex2f.Normalize | ( | ) |
Normalize vertex coordinates.
Negate operator.
v1 |
float Derm.Render.Vertex2f.x |
X coordinate for bidimensional vertex.
float Derm.Render.Vertex2f.y |
Y coordinate for bidimensional vertex.
float Derm.Render.Vertex2f.this[int idx] [get, set] |
Vertex components indexer (cast to sbyte to float).
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.