#include <Vector3D.h>
Public Member Functions | |
Vector3D () | |
Vector3D (Vector3D *vector) | |
Vector3D (GLfloat x_coord, GLfloat y_coord, GLfloat z_coord, GLfloat w_coord) | |
GLfloat | getXCoord () const |
GLfloat | getYCoord () const |
GLfloat | getZCoord () const |
GLfloat | getWCoord () const |
void | setXCoord (GLfloat x_coord) |
void | setYCoord (GLfloat y_coord) |
void | setZCoord (GLfloat z_coord) |
void | setWCoord (GLfloat w_coord) |
Vector3D | operator+ (Vector3D an_other_vector) |
Vector3D | operator- (Vector3D an_other_vector) |
Vector3D | operator * (GLfloat scalar) |
Vector3D | operator/ (GLfloat scalar) |
Protected Attributes | |
GLfloat | x_coordinate_ |
The X-coordinate of the vector. | |
GLfloat | y_coordinate_ |
The Y-coordinate of the vector. | |
GLfloat | z_coordinate_ |
The Z-coordinate of the vector. | |
GLfloat | w_coordinate_ |
The W-coordinate of the vector. |
|
The default constructor. Definition at line 37 of file Vector3D.h. Referenced by operator *(), operator+(), operator-(), and operator/().
|
|
The copy constructor. Definition at line 43 of file Vector3D.h. References getWCoord(), getXCoord(), getYCoord(), getZCoord(), w_coordinate_, x_coordinate_, y_coordinate_, and z_coordinate_.
Here is the call graph for this function: ![]() |
|
The second constructor which allows the initialization of the object variables.
Definition at line 61 of file Vector3D.h. References w_coordinate_, x_coordinate_, y_coordinate_, and z_coordinate_.
|
|
Returns the W-coordinate of the vector.
Definition at line 107 of file Vector3D.h. References w_coordinate_. Referenced by operator+(), operator-(), and Vector3D().
|
|
Returns the X-coordinate of the vector.
Definition at line 74 of file Vector3D.h. References x_coordinate_. Referenced by operator+(), operator-(), and Vector3D().
|
|
Returns the Y-coordinate of the vector.
Definition at line 85 of file Vector3D.h. References y_coordinate_. Referenced by operator+(), operator-(), and Vector3D().
|
|
Returns the Z-coordinate of the vector.
Definition at line 96 of file Vector3D.h. References z_coordinate_. Referenced by operator+(), operator-(), and Vector3D().
|
|
Operator overoading of * to multiply this vector with a skalar.
Definition at line 195 of file Vector3D.h. References Vector3D(), w_coordinate_, x_coordinate_, y_coordinate_, and z_coordinate_.
Here is the call graph for this function: ![]() |
|
Operator overoading of + to add two vectors.
Definition at line 164 of file Vector3D.h. References getWCoord(), getXCoord(), getYCoord(), getZCoord(), operator+(), Vector3D(), w_coordinate_, x_coordinate_, y_coordinate_, and z_coordinate_. Referenced by operator+().
Here is the call graph for this function: ![]() |
|
Operator overoading of - to subtract two vectors.
Definition at line 180 of file Vector3D.h. References getWCoord(), getXCoord(), getYCoord(), getZCoord(), operator-(), Vector3D(), w_coordinate_, x_coordinate_, y_coordinate_, and z_coordinate_. Referenced by operator-().
Here is the call graph for this function: ![]() |
|
Operator overoading of / to divide this vector by a skalar.
Definition at line 210 of file Vector3D.h. References operator/(), Vector3D(), w_coordinate_, x_coordinate_, y_coordinate_, and z_coordinate_. Referenced by operator/().
Here is the call graph for this function: ![]() |
|
Sets the W-coordinate of the vector.
Definition at line 151 of file Vector3D.h. References setWCoord(), and w_coordinate_. Referenced by setWCoord().
Here is the call graph for this function: ![]() |
|
Sets the X-coordinate of the vector.
Definition at line 118 of file Vector3D.h. References setXCoord(), and x_coordinate_. Referenced by setXCoord().
Here is the call graph for this function: ![]() |
|
Sets the Y-coordinate of the vector.
Definition at line 129 of file Vector3D.h. References setYCoord(), and y_coordinate_. Referenced by setYCoord().
Here is the call graph for this function: ![]() |
|
Sets the Z-coordinate of the vector.
Definition at line 140 of file Vector3D.h. References setZCoord(), and z_coordinate_. Referenced by setZCoord().
Here is the call graph for this function: ![]() |
|
The W-coordinate of the vector.
Definition at line 30 of file Vector3D.h. Referenced by getWCoord(), operator *(), operator+(), operator-(), operator/(), setWCoord(), and Vector3D(). |
|
The X-coordinate of the vector.
Definition at line 24 of file Vector3D.h. Referenced by getXCoord(), operator *(), operator+(), operator-(), operator/(), setXCoord(), and Vector3D(). |
|
The Y-coordinate of the vector.
Definition at line 26 of file Vector3D.h. Referenced by getYCoord(), operator *(), operator+(), operator-(), operator/(), setYCoord(), and Vector3D(). |
|
The Z-coordinate of the vector.
Definition at line 28 of file Vector3D.h. Referenced by getZCoord(), operator *(), operator+(), operator-(), operator/(), setZCoord(), and Vector3D(). |