#include <gcu/vector.h>
List of all members.
Detailed Description
Utility 3d vectors class used by the gcu::Sphere class.
Definition at line 177 of file vector.h.
Constructor & Destructor Documentation
Constructs a vector with all three coordinates equal to 0.
- Parameters:
-
x | the x coordinate. |
y | the y coordinate. |
z | the z coordinate. |
Constructs a vector given its three coordinates.
Member Function Documentation
- Returns:
- the first coordinate of the vector as a reference.
Definition at line 238 of file vector.h.
- Returns:
- the second coordinate of the vector as a reference.
Definition at line 250 of file vector.h.
- Returns:
- the third coordinate of the vector as a reference.
Definition at line 262 of file vector.h.
- Returns:
- the first coordinate of the vector.
Definition at line 238 of file vector.h.
- Returns:
- the second coordinate of the vector.
Definition at line 250 of file vector.h.
- Returns:
- the third coordinate of the vector.
Definition at line 262 of file vector.h.
Vector3f gcu::Vector3f::operator* |
( |
float |
f | ) |
const |
- Parameters:
-
- Returns:
- the vector multiplied by f.
- Parameters:
-
- Returns:
- the some of the two vectors.
- Parameters:
-
The assignment operator.
- Returns:
- a new vector identical to other and this.
- Parameters:
-
x | the new value for the first coordinate. |
Sets the first coordinate of the vector.
Definition at line 238 of file vector.h.
- Parameters:
-
y | the new value for the second coordinate. |
Sets the second coordinate of the vector.
Definition at line 250 of file vector.h.
- Parameters:
-
z | the new value for the third coordinate. |
Sets the third coordinate of the vector.
Definition at line 262 of file vector.h.
The documentation for this class was generated from the following file: