|
| vector (const T &a) |
|
| vector (const T &x, const T &y) |
|
| vector (const T &x, const T &y, const T &z) |
|
| vector (const T &x, const T &y, const T &z, const T &w) |
|
| vector (const vector< M-1, T > &vector_, T last_) |
|
| vector (const T *values) |
|
template<size_t N> |
| vector (const vector< N, T > &source_, typename enable_if< N==M-1 >::type *=0) |
|
template<size_t N> |
| vector (const vector< N, T > &source_, typename enable_if< N==M+1 >::type *=0) |
|
template<typename U > |
| vector (const vector< M, U > &source_) |
|
iterator | begin () |
|
iterator | end () |
|
const_iterator | begin () const |
|
const_iterator | end () const |
|
reverse_iterator | rbegin () |
|
reverse_iterator | rend () |
|
const_reverse_iterator | rbegin () const |
|
const_reverse_iterator | rend () const |
|
| operator T * () |
|
| operator const T * () const |
|
T & | operator() (size_t index) |
|
const T & | operator() (size_t index) const |
|
T & | at (size_t index) |
|
const T & | at (size_t index) const |
|
T & | x () |
|
T & | y () |
|
T & | z () |
|
T & | w () |
|
const T & | x () const |
|
const T & | y () const |
|
const T & | z () const |
|
const T & | w () const |
|
T & | r () |
|
T & | g () |
|
T & | b () |
|
T & | a () |
|
const T & | r () const |
|
const T & | g () const |
|
const T & | b () const |
|
const T & | a () const |
|
bool | operator== (const vector &other) const |
|
bool | operator!= (const vector &other) const |
|
bool | equals (const vector &other, T tolerance=std::numeric_limits< T >::epsilon()) const |
|
bool | operator< (const vector &other) const |
|
vector & | operator= (const T *c_array) |
|
T | operator= (T filler) |
|
vector & | operator= (const vector &other) |
|
template<typename U > |
void | operator= (const vector< M, U > &other) |
|
template<size_t N> |
enable_if< N==M-1 >::type * | operator= (const vector< N, T > &source_) |
|
template<size_t N> |
enable_if< N==M+1 >::type * | operator= (const vector< N, T > &source_) |
|
vector | operator* (const vector &other) const |
|
vector | operator/ (const vector &other) const |
|
vector | operator+ (const vector &other) const |
|
vector | operator- (const vector &other) const |
|
void | operator*= (const vector &other) |
|
void | operator/= (const vector &other) |
|
void | operator+= (const vector &other) |
|
void | operator-= (const vector &other) |
|
vector | operator* (const T other) const |
|
vector | operator/ (const T other) const |
|
vector | operator+ (const T other) const |
|
vector | operator- (const T other) const |
|
void | operator*= (const T other) |
|
void | operator/= (const T other) |
|
void | operator+= (const T other) |
|
void | operator-= (const T other) |
|
vector | operator- () const |
|
const vector & | negate () |
|
void | set (T a) |
|
void | set (const vector< M-1, T > &v, T a) |
|
template<size_t N> |
void | set (const vector< N, T > &v) |
|
void | set (T x, T y) |
|
void | set (T x, T y, T z) |
|
void | set (T x, T y, T z, T w) |
|
template<typename input_iterator_t > |
void | iter_set (input_iterator_t begin_, input_iterator_t end_) |
|
template<typename TT > |
vector< M, T > & | cross (const vector< M, TT > &b, typename enable_if< M==3, TT >::type *=0) |
|
T | dot (const vector &other) const |
|
T | normalize () |
|
void | set_random (int seed=-1) |
|
T | length () const |
|
T | squared_length () const |
|
T | distance (const vector &other) const |
|
T | squared_distance (const vector &other) const |
|
T | product () const |
|
template<typename TT > |
vector< 3, T > & | rotate (T theta, vector< M, TT > axis, typename enable_if< M==3, TT >::type *=0) |
|
template<size_t N, size_t O> |
vector< N, T > | get_sub_vector (typename enable_if< M >=N+O >::type *=0) const |
|
template<size_t N, size_t O> |
void | set_sub_vector (const vector< N, T > &sub, typename enable_if< M >=N+O >::type *=0) |
| Set the sub vector of the given length at the given offset. More...
|
|
template<typename TT > |
vector< 3, T > | project_point_onto_sphere (const vector< 3, TT > &point, typename enable_if< M==4, TT >::type *=0) const |
|
template<typename TT > |
T | distance_to_sphere (const vector< 3, TT > &point, typename enable_if< M==4, TT >::type *=0) const |
|
template<typename TT > |
T | distance_to_plane (const vector< 3, TT > &point, typename enable_if< M==4, TT >::type *=0) const |
|
template<typename TT > |
vector< 3, T > | project_point_onto_plane (const vector< 3, TT > &point, typename enable_if< M==4, TT >::type *=0) const |
|
size_t | find_min_index () const |
|
size_t | find_max_index () const |
|
T & | find_min () |
|
T & | find_max () |
|
const T & | find_min () const |
|
const T & | find_max () const |
|
void | clamp (const T &min=0.0, const T &max=1.0) |
|
bool | is_unit_vector () const |
|
void | perturb (T perturbation=0.0001) |
|
void | sqrt_elementwise () |
|
double | norm () const |
|
void | reciprocal () |
|
void | reciprocal_safe () |
|
template<typename TT > |
void | cast_from (const vector< M, TT > &other) |
|
size_t | nnz () const |
|
template<size_t N> |
enable_if< N==M-1 >::type * | operator= (const vector< N, T > &source_) |
|
template<size_t N> |
enable_if< N==M+1 >::type * | operator= (const vector< N, T > &source_) |
|
template<size_t M, typename T>
class vmml::vector< M, T >
Definition at line 43 of file types.hpp.