#include <gcu/vector.h>
Utility 3d vectors class used by the gcu::Sphere class.
Definition at line 177 of file vector.h.
◆ Vector3f() [1/2]
gcu::Vector3f::Vector3f |
( |
| ) |
|
Constructs a vector with all three coordinates equal to 0.
◆ Vector3f() [2/2]
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.
◆ ~Vector3f()
gcu::Vector3f::~Vector3f |
( |
| ) |
|
◆ GetRefx()
gcu::Vector3f::GetRefx |
( |
void |
| ) |
|
|
inline |
- Returns
- the first coordinate of the vector as a reference.
Definition at line 238 of file vector.h.
◆ GetRefy()
gcu::Vector3f::GetRefy |
( |
void |
| ) |
|
|
inline |
- Returns
- the second coordinate of the vector as a reference.
Definition at line 250 of file vector.h.
◆ GetRefz()
gcu::Vector3f::GetRefz |
( |
void |
| ) |
|
|
inline |
- Returns
- the third coordinate of the vector as a reference.
Definition at line 262 of file vector.h.
◆ Getx()
gcu::Vector3f::Getx |
( |
void |
| ) |
const |
|
inline |
- Returns
- the first coordinate of the vector.
Definition at line 238 of file vector.h.
◆ Gety()
gcu::Vector3f::Gety |
( |
void |
| ) |
const |
|
inline |
- Returns
- the second coordinate of the vector.
Definition at line 250 of file vector.h.
◆ Getz()
gcu::Vector3f::Getz |
( |
void |
| ) |
const |
|
inline |
- Returns
- the third coordinate of the vector.
Definition at line 262 of file vector.h.
◆ operator*()
Vector3f gcu::Vector3f::operator* |
( |
float |
f | ) |
const |
- Parameters
-
- Returns
- the vector multiplied by f.
◆ operator+()
- Parameters
-
- Returns
- the some of the two vectors.
◆ operator-()
◆ operator=()
- Parameters
-
The assignment operator.
- Returns
- a new vector identical to other and this.
◆ Setx()
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.
◆ Sety()
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.
◆ Setz()
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: