![]() |
![]() |
#include <RKSmallVector.h>
Public Types | |
typedef T | Scalar |
Public Member Functions | |
int | dim () const |
T | dot (const RKSmallVector &v) const |
Scalar product, or "dot" product, with a vector of same type. More... | |
template<class U > | |
RKSmallVector & | increment (const RKSmallVector< U, N > &v, const T &t) |
Increment by another vector multiplied by a scalar. More... | |
const T & | operator() (int i) const |
access to values More... | |
T & | operator() (int i) |
RKSmallVector & | operator*= (const T &t) |
Scaling by a scalar value (multiplication) More... | |
template<class U > | |
RKSmallVector & | operator+= (const RKSmallVector< U, N > &v) |
Operations with vector of same size. More... | |
RKSmallVector | operator- () const |
Unary minus, returns a vector with negated components. More... | |
template<class U > | |
RKSmallVector & | operator-= (const RKSmallVector< U, N > &v) |
RKSmallVector & | operator/= (const T &t) |
Scaling by a scalar value (division) More... | |
const T & | operator[] (int i) const |
T & | operator[] (int i) |
RKSmallVector () | |
RKSmallVector (const Scalar *d) | |
Construct from array. More... | |
template<class Iter > | |
RKSmallVector (Iter begin, Iter end) | |
int | size () const |
Private Attributes | |
Scalar | data_ [N] |
Definition at line 9 of file RKSmallVector.h.
typedef T RKSmallVector< T, N >::Scalar |
Definition at line 11 of file RKSmallVector.h.
|
inline |
Definition at line 13 of file RKSmallVector.h.
|
inline |
|
inline |
construct from pair of iterators; when dereferenced, they should return a type convertible to Scalar. The iterator range shold be exactly N
Definition at line 22 of file RKSmallVector.h.
|
inline |
Definition at line 27 of file RKSmallVector.h.
|
inline |
Scalar product, or "dot" product, with a vector of same type.
Definition at line 76 of file RKSmallVector.h.
|
inline |
|
inline |
|
inline |
Definition at line 31 of file RKSmallVector.h.
|
inline |
|
inline |
|
inline |
Unary minus, returns a vector with negated components.
Definition at line 58 of file RKSmallVector.h.
|
inline |
Definition at line 44 of file RKSmallVector.h.
|
inline |
|
inline |
Definition at line 32 of file RKSmallVector.h.
|
inline |
Definition at line 33 of file RKSmallVector.h.
|
inline |
Definition at line 26 of file RKSmallVector.h.
|
private |
Definition at line 84 of file RKSmallVector.h.
Referenced by RKSmallVector< Scalar, 5 >::dot(), RKSmallVector< Scalar, 5 >::increment(), RKSmallVector< Scalar, 5 >::operator()(), RKSmallVector< Scalar, 5 >::operator*=(), RKSmallVector< Scalar, 5 >::operator+=(), RKSmallVector< Scalar, 5 >::operator-(), RKSmallVector< Scalar, 5 >::operator-=(), RKSmallVector< Scalar, 5 >::operator/=(), RKSmallVector< Scalar, 5 >::operator[](), and RKSmallVector< Scalar, 5 >::RKSmallVector().