#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.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
friend |
|
friend |
|
private |