#include <Vector3.h>
Public Member Functions | |
Vector3 () | |
Vector3 (T x, T y, T z) | |
bool | operator== (const Vector3 &vector) const |
Vector3< T > | operator+ (const Vector3 &vector) const |
Vector3< T > & | operator+= (const Vector3 &vector) |
Vector3< T > | negative () const |
void | normalize () |
const char * | toString () |
Public Attributes | |
T | x |
T | y |
T | z |
Static Public Attributes | |
static const Vector3 | UNIT_ZERO |
math::Vector3< T >::Vector3 | ( | ) |
Constructor
math::Vector3< T >::Vector3 | ( | T | x, | |
T | y, | |||
T | z | |||
) |
Constructor
bool math::Vector3< T >::operator== | ( | const Vector3< T > & | vector | ) | const |
Vectors comparison
vector | The outside vector |
Vector3<T> math::Vector3< T >::operator+ | ( | const Vector3< T > & | vector | ) | const |
Vectors operation
vector | The outside vector |
Vector3<T>& math::Vector3< T >::operator+= | ( | const Vector3< T > & | vector | ) |
Vectors attribution
vector | The outside vector |
Vector3<T> math::Vector3< T >::negative | ( | ) | const |
Negate the vector values
void math::Vector3< T >::normalize | ( | ) |
Normalize the vector values
const char* math::Vector3< T >::toString | ( | ) | [inline, virtual] |
const Vector3 math::Vector3< T >::UNIT_ZERO [static] |
Predefined vector property
T math::Vector3< T >::x |
x value
T math::Vector3< T >::y |
y value
T math::Vector3< T >::z |
z value