Template to handle 3 dimensional vector. More...
#include <sch/Matrix/SmallVector4T.h>
Public Member Functions | |
Vector4T () | |
Basic constructor: all the field are set to zero. More... | |
Vector4T (const T &x, const T &y, const T &z, const T &w) | |
Vector4T< T > | operator= (const Vector4T< T > &v) |
Assignement operator. More... | |
Vector4T< T > | operator- () const |
Unary operator -. More... | |
T & | operator[] (unsigned i) |
Array operator. More... | |
const T & | operator[] (unsigned i) const |
Array operator. More... | |
T & | operator() (unsigned i) |
Array operator. More... | |
bool | operator== (const Vector4T< T > &v) const |
Binary operator ==. More... | |
Vector4T< T > | operator+ (const Vector4T< T > &v) const |
Binary operator +. More... | |
Vector4T< T > | operator- (const Vector4T< T > &v) const |
Binary operator -. More... | |
void | operator+= (const Vector4T< T > &v) |
Binary operator +=. More... | |
void | operator-= (const Vector4T< T > &v) |
Binary operator -=. More... | |
Vector4T< T > | operator* (const T &t) const |
Binary operator *. More... | |
Vector4T< T > | operator/ (const T &t) const |
Binary operator /. More... | |
void | operator*= (const T &t) |
Binary operator *=. More... | |
void | operator/= (const T &t) |
Binary operator /=. More... | |
void | normalize () |
Normalize . More... | |
T | norm () const |
Get the norm. More... | |
T | normsquared () const |
Get the norm squared. More... | |
Public Attributes | |
T | m_x |
T | m_y |
T | m_z |
T | m_w |
Friends | |
std::ostream & | operator<< (std::ostream &os, Vector4T< T > const &v) |
Template to handle 3 dimensional vector.
|
inline |
Basic constructor: all the field are set to zero.
|
inlineexplicit |
|
inline |
Get the norm.
|
inline |
Normalize .
|
inline |
Get the norm squared.
|
inline |
Array operator.
|
inline |
Binary operator *.
|
inline |
Binary operator *=.
|
inline |
Binary operator +.
|
inline |
Binary operator +=.
|
inline |
Unary operator -.
|
inline |
Binary operator -.
|
inline |
Binary operator -=.
|
inline |
Binary operator /.
|
inline |
Binary operator /=.
|
inline |
Assignement operator.
|
inline |
Binary operator ==.
|
inline |
Array operator.
|
inline |
Array operator.
|
friend |
T CD_Matrix::Vector4T< T >::m_w |
T CD_Matrix::Vector4T< T >::m_x |
T CD_Matrix::Vector4T< T >::m_y |
T CD_Matrix::Vector4T< T >::m_z |