Math::VectorBase<2,Math::Vector<2,T>::T> internal struct members

bool close_to(const VectorBase<2, T> &m, T error = 1 e-8)

compare two almost equal vectors

T len() const

Compute vector length

VectorBase<2, T> mul(const VectorBase<2, T> &v) const

Vector values multiply

Negate vector

const VectorBase<2, T> & normalize()

Normalize vector length

VectorBase<2, T> normalized() const

Get normalized vector

T operator*(const VectorBase<2, T> &v) const

Vector dot product

Scale vector

VectorBase<2, T> operator*(const Matrix<N> &m)

Multiply vector with matrix. See Vector class for matrix/vector multiplication.

const VectorBase<2, T> & operator*=(T scale)

Multiply by a vector

VectorBase<2, T> operator-(const VectorBase<2, T> &v) const

Subtract two vectors

VectorBase<2, T> operator-() const

Get negated vector

Sutract a vector

Scale vector

Vector division

const VectorBase<2, T> & operator/=(T scale)

Divide by a vector

bool operator==(const VectorBase<2, T> &m) const

compare two vectors for equality

T operator[](int n) const

Get value at specified index

T & operator[](int n)

Get reference to value at specified index

template <int M> VectorBase<M, T> select(unsigned int bitmask, const VectorBase<M, T> &v) const

Select components from two vectors. Components which have their corresponding bit set in the mask are extracted from this vector and other components are taken from passed vector.

void set(T value)

Set the whole vector to the specified value

Valid XHTML 1.0 StrictGenerated by diaxen on Sun Jan 8 00:47:24 2012 using MkDoc