3D Vector

Functions

template<class T>
inline Vect3<T> operator+(const Vect3<T> &a, const Vect3<T> &b)
template<class T>
inline Vect3<T> operator-(const Vect3<T> &a, const Vect3<T> &b)
template<class T>
inline T operator*(const Vect3<T> &a, const Vect3<T> &b)
template<class T>
inline Vect3<T> operator^(const Vect3<T> &a, const Vect3<T> &b)
template<class T>
inline Vect3<T> operator*(const T k, const Vect3<T> &v)
template<class T>
inline Vect3<T> operator*(const Vect3<T> &v, const T k)
template<class T>
inline bool operator==(const Vect3<T> &u, const Vect3<T> &v)
template<class T>
inline bool operator!=(const Vect3<T> &u, const Vect3<T> &v)
template<class T>
inline bool operator<(const Vect3<T> &u, const Vect3<T> &v)
template<class T>
class Vect3

Public Functions

inline explicit Vect3()
inline explicit Vect3(const T x_, const T y_, const T z_)
inline bool isNull() const
inline T manhattanNorm() const
inline T squared_norm() const

Returns the norm of the vector, squared.

inline double norm() const
inline void normalize()
template<class U>
inline operator Vect3<U>() const
inline Vect3<T> operator-() const
inline void operator*=(const T k)
inline void operator/=(const T k)
inline void operator+=(const Vect3<T> &v)
inline void operator-=(const Vect3<T> &v)

Public Members

T x
T y
T z

Public Static Functions

static inline double dist(const Vect3<T> &a, const Vect3<T> &b)