Public Member Functions | |
Vector3D (const Vector3D< T > &v) | |
Vector3D () | |
Vector3D (const T &x, const T &y, const T &z) | |
Vector3D (const T data[3]) | |
Vector3D (const Vector3D< T > *v) | |
void | set (const T &x, const T &y, const T &z) |
void | set (const T data[3]) |
Vector3D< T > & | operator= (const Vector3D< T > &src) |
bool | operator== (const Vector3D< T > &src) const |
bool | operator< (const Vector3D< T > &src) const |
void | getSpheric (double &theta, double &phi) const |
void | getSpheric (double &distance, double &theta, double &phi) const |
void | setSpheric (double distance, double theta, double phi) |
const T & | x () const |
const T & | y () const |
const T & | z () const |
void | x (const T &t) |
void | y (const T &t) |
void | z (const T &t) |
T & | operator[] (int index) |
const T & | operator[] (int index) const |
const T * | getData () const |
T * | getDataRef () |
void | normalize () |
void | setLength (T len) |
double | module () const |
double | squaredModule () const |
double | angle (const Vector3D< T > &v) const |
double | distance (const Vector3D< T > &v) const |
double | squaredDistance (const Vector3D< T > &v) const |
double | infDistance (const Vector3D< T > &v) const |
double | manhattanDistance (const Vector3D< T > &v) const |
double | distanceToPlane (const Vector3D< T > &P, const Vector3D< T > &N) const |
void | rotateX (double angle) |
void | rotateY (double angle) |
void | rotateZ (double angle) |
Vector3D< T > | rotation (const Vector3D< T > &axis, double angle) const |
T | operator * (const Vector3D< T > &v) const |
T | dotProduct (const Vector3D< T > &v) const |
T | operator * (const std::vector< T > &v) const |
Vector3D< T > | operator/ (T factor) const |
const Vector3D< T > & | operator/= (T factor) |
Vector3D< T > | operator * (T factor) const |
const Vector3D< T > & | operator *= (T factor) |
Vector3D< T > | operator^ (const Vector3D< T > &v) const |
Vector3D< T > | crossProduct (const Vector3D< T > &v) const |
Vector3D< T > | operator- (const Vector3D< T > &v) const |
Vector3D< T > | difference (const Vector3D< T > &v) const |
const Vector3D< T > & | operator-= (const Vector3D< T > &v) |
const Vector3D< T > & | substract (const Vector3D< T > &v) |
Vector3D< T > | projectX () const |
Vector3D< T > | projectY () const |
Vector3D< T > | projectZ () const |
Vector3D< T > | project (const Vector3D< T > &n) const |
Vector3D< T > | intersect (const Vector3D< T > ¢er, const Vector3D< T > &normal) const |
Vector3D< T > | perpendicular () const |
Vector3D< T > | operator+ (const Vector3D< T > &v) const |
Vector3D< T > | sum (const Vector3D< T > &v) const |
const Vector3D< T > & | operator+= (const Vector3D< T > &v) |
const Vector3D< T > & | add (const Vector3D< T > &v) |
Static Public Member Functions | |
static unsigned | dim () |
Protected Attributes | |
T | _data [3] |
Definition at line 32 of file vector3.h.