Public Member Functions | |
Vertex2f () | |
Vertex2f (float x, float y) | |
Vertex2f (float x) | |
Vertex2f (Vertex2f v) | |
Vertex2f (Vertex3f v) | |
void | Init () |
void | Init (float x, float y) |
void | Init (double x, double y) |
void | Init (Vertex2f v) |
bool | IsEqual (Vertex2f v) |
float | DistanceFrom (ref Vertex2f v) |
float | SquareDot () |
float | DotProduct (Vertex2f v) |
void | ToConsole () |
void | ToConsole (String message) |
void | Normalize () |
float | Cell (int id) |
Static Public Member Functions | |
static Vertex2f | operator+ (Vertex2f v1, Vertex2f v2) |
static Vertex2f | operator- (Vertex2f v1, Vertex2f v2) |
static Vertex2f | operator* (Vertex2f v1, Vertex3f v2) |
static Vertex2f | operator/ (Vertex2f v1, Vertex2f v2) |
static Vertex2f | operator+ (float v, Vertex2f v2) |
static Vertex2f | operator- (float v, Vertex2f v2) |
static Vertex2f | operator* (float v, Vertex2f v2) |
static Vertex2f | operator/ (float v, Vertex2f v2) |
static Vertex2f | operator+ (Vertex2f v2, float v) |
static Vertex2f | operator- (Vertex2f v2, float v) |
static Vertex2f | operator* (Vertex2f v2, float v) |
static Vertex2f | operator/ (Vertex2f v2, float v) |
Public Attributes | |
float | X |
float | Y |
Properties | |
float | Length [get] |
Powertek.OpenGl.Vertex2f.Vertex2f | ( | ) |
Powertek.OpenGl.Vertex2f.Vertex2f | ( | float | x, | |
float | y | |||
) |
Powertek.OpenGl.Vertex2f.Vertex2f | ( | float | x | ) |
float Powertek.OpenGl.Vertex2f.Cell | ( | int | id | ) |
Cell index, 0 = x, 1 = y.
id |
float Powertek.OpenGl.Vertex2f.DistanceFrom | ( | ref Vertex2f | v | ) |
Return the distance between two vertices.
v |
float Powertek.OpenGl.Vertex2f.DotProduct | ( | Vertex2f | v | ) |
Dot product.
v |
void Powertek.OpenGl.Vertex2f.Init | ( | Vertex2f | v | ) |
Init Vertex.
v |
void Powertek.OpenGl.Vertex2f.Init | ( | double | x, | |
double | y | |||
) |
Init Vertex.
x | ||
y |
void Powertek.OpenGl.Vertex2f.Init | ( | float | x, | |
float | y | |||
) |
Init Vertex.
x | ||
y |
void Powertek.OpenGl.Vertex2f.Init | ( | ) |
Init Vertex with 0f.
bool Powertek.OpenGl.Vertex2f.IsEqual | ( | Vertex2f | v | ) |
Check if vertex is equal to another.
v |
void Powertek.OpenGl.Vertex2f.Normalize | ( | ) |
Normalize this vertex.
Operator Overloading.
v2 | ||
v |
Operator Overloading.
v | ||
v2 |
Operator Overloading.
v1 | ||
v2 |
Operator Overloading.
v2 | ||
v |
Operator Overloading.
v | ||
v2 |
Operator Overloading.
v1 | ||
v2 |
Operator Overloading.
v2 | ||
v |
Operator Overloading.
v | ||
v2 |
Operator Overloading.
v1 | ||
v2 |
Operator Overloading.
v2 | ||
v |
Operator Overloading.
v | ||
v2 |
Operator Overloading.
v1 | ||
v2 |
float Powertek.OpenGl.Vertex2f.SquareDot | ( | ) |
Squared dot product.
void Powertek.OpenGl.Vertex2f.ToConsole | ( | String | message | ) |
Output vertex to console.
message |
void Powertek.OpenGl.Vertex2f.ToConsole | ( | ) |
Output vertex to console.
X Component.
Y Component.
float Powertek.OpenGl.Vertex2f.Length [get] |
Length of this Vertex.