#include <Karto.h>
Public Member Functions | |
const T & | GetX () const |
const T & | GetY () const |
const T & | GetZ () const |
kt_double | Length () const |
void | MakeCeil (const Vector3 &rOther) |
void | MakeFloor (const Vector3 &rOther) |
kt_bool | operator!= (const Vector3 &rOther) const |
const Vector3 | operator* (T scalar) const |
const Vector3 | operator+ (const Vector3 &rOther) const |
const Vector3 | operator+ (kt_double scalar) const |
const Vector3 | operator- (const Vector3 &rOther) const |
const Vector3 | operator- (kt_double scalar) const |
Vector3 & | operator= (const Vector3 &rOther) |
kt_bool | operator== (const Vector3 &rOther) const |
void | SetX (const T &x) |
void | SetY (const T &y) |
void | SetZ (const T &z) |
kt_double | SquaredLength () const |
std::string | ToString () const |
Vector3 () | |
Vector3 (T x, T y, T z) | |
Vector3 (const Vector3 &rOther) | |
Private Attributes | |
T | m_Values [3] |
Friends | |
std::ostream & | operator<< (std::ostream &rStream, const Vector3 &rVector) |
std::istream & | operator>> (std::istream &rStream, const Vector3 &) |
Represents a vector (x, y, z) in 3-dimensional real space.
karto::Vector3< T >::Vector3 | ( | ) | [inline] |
karto::Vector3< T >::Vector3 | ( | T | x, |
T | y, | ||
T | z | ||
) | [inline] |
karto::Vector3< T >::Vector3 | ( | const Vector3< T > & | rOther | ) | [inline] |
const T& karto::Vector3< T >::GetX | ( | ) | const [inline] |
const T& karto::Vector3< T >::GetY | ( | ) | const [inline] |
const T& karto::Vector3< T >::GetZ | ( | ) | const [inline] |
kt_double karto::Vector3< T >::Length | ( | ) | const [inline] |
void karto::Vector3< T >::MakeCeil | ( | const Vector3< T > & | rOther | ) | [inline] |
void karto::Vector3< T >::MakeFloor | ( | const Vector3< T > & | rOther | ) | [inline] |
kt_bool karto::Vector3< T >::operator!= | ( | const Vector3< T > & | rOther | ) | const [inline] |
const Vector3 karto::Vector3< T >::operator* | ( | T | scalar | ) | const [inline] |
const Vector3 karto::Vector3< T >::operator+ | ( | const Vector3< T > & | rOther | ) | const [inline] |
const Vector3 karto::Vector3< T >::operator+ | ( | kt_double | scalar | ) | const [inline] |
const Vector3 karto::Vector3< T >::operator- | ( | const Vector3< T > & | rOther | ) | const [inline] |
const Vector3 karto::Vector3< T >::operator- | ( | kt_double | scalar | ) | const [inline] |
Vector3& karto::Vector3< T >::operator= | ( | const Vector3< T > & | rOther | ) | [inline] |
kt_bool karto::Vector3< T >::operator== | ( | const Vector3< T > & | rOther | ) | const [inline] |
void karto::Vector3< T >::SetX | ( | const T & | x | ) | [inline] |
void karto::Vector3< T >::SetY | ( | const T & | y | ) | [inline] |
void karto::Vector3< T >::SetZ | ( | const T & | z | ) | [inline] |
kt_double karto::Vector3< T >::SquaredLength | ( | ) | const [inline] |
std::string karto::Vector3< T >::ToString | ( | ) | const [inline] |
std::ostream& operator<< | ( | std::ostream & | rStream, |
const Vector3< T > & | rVector | ||
) | [friend] |
std::istream& operator>> | ( | std::istream & | rStream, |
const Vector3< T > & | |||
) | [friend] |
T karto::Vector3< T >::m_Values[3] [private] |