#include <gcu/vector.h>
Detailed Description
Utility 3d vectors class used by the gcu::Sphere class.
Definition at line 177 of file vector.h.
Constructor & Destructor Documentation
gcu::Vector3f::Vector3f |
( |
| ) |
|
Constructs a vector with all three coordinates equal to 0.
gcu::Vector3f::Vector3f |
( |
float |
x, |
|
|
float |
y, |
|
|
float |
z |
|
) |
| |
- Parameters
-
x | the x coordinate. |
y | the y coordinate. |
z | the z coordinate. |
Constructs a vector given its three coordinates.
gcu::Vector3f::~Vector3f |
( |
| ) |
|
Member Function Documentation
gcu::Vector3f::GetRefx |
( |
void |
| ) |
|
|
inline |
- Returns
- the first coordinate of the vector as a reference.
Definition at line 238 of file vector.h.
gcu::Vector3f::GetRefy |
( |
void |
| ) |
|
|
inline |
- Returns
- the second coordinate of the vector as a reference.
Definition at line 250 of file vector.h.
gcu::Vector3f::GetRefz |
( |
void |
| ) |
|
|
inline |
- Returns
- the third coordinate of the vector as a reference.
Definition at line 262 of file vector.h.
gcu::Vector3f::Getx |
( |
void |
| ) |
const |
|
inline |
- Returns
- the first coordinate of the vector.
Definition at line 238 of file vector.h.
gcu::Vector3f::Gety |
( |
void |
| ) |
const |
|
inline |
- Returns
- the second coordinate of the vector.
Definition at line 250 of file vector.h.
gcu::Vector3f::Getz |
( |
void |
| ) |
const |
|
inline |
- 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.
gcu::Vector3f::Setx |
( |
float |
x | ) |
|
|
inline |
- Parameters
-
x | the new value for the first coordinate. |
Sets the first coordinate of the vector.
Definition at line 238 of file vector.h.
gcu::Vector3f::Sety |
( |
float |
y | ) |
|
|
inline |
- Parameters
-
y | the new value for the second coordinate. |
Sets the second coordinate of the vector.
Definition at line 250 of file vector.h.
gcu::Vector3f::Setz |
( |
float |
z | ) |
|
|
inline |
- 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: