template<class T> class Vec23::Vector3 |
A 3D vector
A 3D vector
Vector3 () Null | |
Vector3 (T x, T y, T z) From components | |
Vector3 (const Vector<T> &v, float z = 0) From a 2D vector and an optional Z-component | |
Vector3 | finitized () const Making all components finite |
Vector3 | operator* (const double &s) const Multiplication by scalar |
template<class U> const Vector3& | operator*= (const U &s) Multiplication by scalar |
template<class U> const Vector3& | operator/= (const U &s) Multiplication by reciprocal of a scalar |
template<class U> Vector3 | operator/ (const U &s) Multiplication by reciprocal of a scalar |
Vector3 | normalized () const Return the normalized version of this vector |
Vector3<T> | operator- () const Negation |
Vector3 | operator+ (const Vector3<T>&v) const Addition |
Vector3 | operator* (const Vector3<T>&v) const Member-wise multiplication of vectors! |
const Vector3& | operator+= (const Vector3<T>&v) Vector addition |
const Vector3& | operator-= (const Vector3<T>&v) Vector subtraction |
Vector3 | operator- (const Vector3<T>&v) const Vector subtraction |
Vector3 | cw90 () const Return a vector like this, but rotated 90 degrees clockwise IN X AND Y |
double | dot (const Vector3<T> &v) const Dot product with another 3-vector |
double | dot2 (const Vector3<T> &v) const Dot product of x and y components only |
double | length () const Length of this vector |
double | xylength () const Length of this vector in xy plane |
Vector3 | crossp (const Vector3<T> &v) const Cross-product with another vector |
Alphabetic index Hierarchy of classes