|
| Vec (T *raw, INVALID_WITH_VECTOR_VALUE u=(typename my_enable_if< ref, INVALID_WITH_VECTOR_VALUE >::TYPE())) |
| Initialize vector to be reference to plain raw data. More...
|
|
| Vec (INVALID_WITH_VECTOR_REFERENCE u=(typename my_enable_if<!ref, INVALID_WITH_VECTOR_REFERENCE >::TYPE())) |
| Empty constructor (this is invalid for a reference type) More...
|
|
| Vec (T v0, INVALID_WITH_VECTOR_REFERENCE u=(typename my_enable_if<!ref, INVALID_WITH_VECTOR_REFERENCE >::TYPE())) |
| Convenience constant vector initialization (valid for any d) More...
|
|
| Vec (T v1, T v2, INVALID_WITH_VECTOR_REFERENCE u=(typename my_enable_if<!ref, INVALID_WITH_VECTOR_REFERENCE >::TYPE())) |
| Convenience 2 vector initialization (only for d==2) More...
|
|
| Vec (T v1, T v2, T v3, INVALID_WITH_VECTOR_REFERENCE u=(typename my_enable_if<!ref, INVALID_WITH_VECTOR_REFERENCE >::TYPE())) |
| Convenience 3 vector initialization (only for d==3) More...
|
|
| Vec (T v1, T v2, T v3, T v4, INVALID_WITH_VECTOR_REFERENCE u=(typename my_enable_if<!ref, INVALID_WITH_VECTOR_REFERENCE >::TYPE())) |
| Convenience 4 vector initialization (only for d==4) More...
|
|
template<class T2 , bool refother> |
| Vec (const Vec< T2, d, refother > &other, INVALID_WITH_VECTOR_REFERENCE u=(typename my_enable_if<!ref &&refother!=ref, INVALID_WITH_VECTOR_REFERENCE >::TYPE())) |
| Copy construct. Only valid if we are not going to be a reference data! More...
|
|
template<class T2 , bool refother> |
Vec & | operator= (const Vec< T2, d, refother > &other) |
|
template<class Tother , bool refother> |
bool | operator== (const Vec< Tother, d, refother > &other) const |
|
template<class Tother , bool refother> |
bool | operator!= (const Vec< Tother, d, refother > &other) const |
|
T & | operator[] (const int i) |
|
const T & | operator[] (const int i) const |
|
T | length2 () const |
| Square of euclidean (2) norm. More...
|
|
T | length () const |
| Euclidean (2) norm. More...
|
|
T | normalize () |
| Normalize in place and return the 2-norm before normalization. More...
|
|
Vec< T, d, false > | normalized () const |
| Return a copy of the vector that is normalized. More...
|
|
Vec & | operator/= (const T val) |
|
Vec & | operator*= (const T val) |
|
template<bool refother> |
Vec & | operator+= (const Vec< T, d, refother > &other) |
|
template<bool refother> |
Vec & | operator-= (const Vec< T, d, refother > &other) |
|
template<bool refother> |
Vec & | operator*= (const Vec< T, d, refother > &other) |
|
template<bool refother> |
Vec & | operator/= (const Vec< T, d, refother > &other) |
|
T_VEC_VALUE | operator- () const |
|
template<bool refother> |
bool | operator== (const Vec< T, d, refother > &other) const |
|
template<bool refother> |
bool | operator!= (const Vec< T, d, refother > &other) const |
|
T_VEC_VALUE | operator* (T s) const |
|
T_VEC_VALUE | operator/ (T s) const |
|
template<bool refother> |
T_VEC_VALUE | operator+ (const Vec< T, d, refother > &other) const |
|
template<bool refother> |
T_VEC_VALUE | operator- (const Vec< T, d, refother > &other) const |
|
template<bool refother> |
T_VEC_VALUE | operator* (const Vec< T, d, refother > &other) const |
|
template<bool refother> |
T_VEC_VALUE | operator/ (const Vec< T, d, refother > &other) const |
|
template<bool refother> |
T | dot (const Vec< T, d, refother > &o) const |
|
template<bool refother> |
T_VEC_VALUE | cross (const Vec< T, 3, refother > &o) const |
|
T_VEC_VALUE | orthogonal () const |
|
template<bool refother> |
T | angle (const Vec< T, 3, refother > &o) const |
|
template<bool refother> |
T_VEC_VALUE | rotateBy (const Vec< T, 3, refother > &axis, T angle) const |
|
template<class T, int d, bool ref = false>
class SeExpr2::Vec< T, d, ref >
Vec class, generic dimension vector class can also point to data if the template argument ref is true
Definition at line 86 of file Vec.h.