template<class T> class Vec23::Vector |
A 2D vector
A 2D vector
Vector () Null | |
Vector (T x, T y) Given components | |
template<class F> | Vector (const Vector3<F> &v) Create from another Vector |
Vector (T* v) Create from an array | |
Vector | finitized () const Making all components finite |
Vector | operator* (const double &s) const Multiplication by scalar |
template<class U> const Vector& | operator*= (const U &s) In-place multiplication by scalar |
Vector | normalized () const Normalize the normalized version of this vector |
Vector<T> | operator- () const Vector negation |
Vector | operator+ (const Vector<T>&v) const Vector addition |
Vector | operator- (const Vector<T>&v) const Vector subtraction |
Vector | cw90 () const Return a vector like this, but rotated 90 degrees clockwise |
double | length () const Return the length of this vector |
double | dot (const Vector<T> &v) const Dot this vector with another |
double | cross (const Vector<T> &v) const Cross this 2D vector with another - gives the sine of the angle between the two, multiplied by the lengths. |
Alphabetic index Hierarchy of classes