ContRap-Libraries
|
Double vector in three dimensions. More...
#include <glmath.h>
Public Member Functions | |
GLVertex (double x=0.0, double y=0.0, double z=0.0) | |
Creates a vertex from point coordinates. | |
void | set (double x, double y, double z) |
Sets the values. | |
GLVertex | operator+ (const GLVertex &vertex) const |
Adds a vertex to the given vertex. | |
GLVertex | operator- () const |
Negates a vertex. | |
GLVertex | operator- (const GLVertex &vertex) const |
Subtracts a vertex from the given vertex. | |
GLVertex | operator* (const GLVertex &vertex) const |
Computes the cross product between two vertices. | |
Data Fields | |
double | x |
Coordinates. | |
double | y |
double | z |
Double vector in three dimensions.
crp::GLVertex::GLVertex | ( | double | x = 0.0 , |
double | y = 0.0 , |
||
double | z = 0.0 |
||
) | [inline] |
Creates a vertex from point coordinates.
x | X-coordinate of the point |
y | Y-coordinate of the point |
z | Z-coordinate of the point |
Computes the cross product between two vertices.
vertex | Other vertex. |
Adds a vertex to the given vertex.
vertex | Other vertex |
Subtracts a vertex from the given vertex.
GLVertex crp::GLVertex::operator- | ( | ) | const [inline] |
Negates a vertex.
void crp::GLVertex::set | ( | double | x, |
double | y, | ||
double | z | ||
) | [inline] |
Sets the values.
x | X-coordinate of the point |
y | Y-coordinate of the point |
z | Z-coordinate of the point |
double crp::GLVertex::x |
Coordinates.
double crp::GLVertex::y |
double crp::GLVertex::z |