ug4
|
#include <math_vector.h>
Public Types | |
typedef std::size_t | size_type |
typedef T | value_type |
Public Member Functions | |
value_type & | coord (std::size_t index) |
value_type | coord (std::size_t index) const |
MathVector () | |
MathVector (const MathVector< 2, T > &v) | |
MathVector (const value_type &val) | |
MathVector (value_type x, value_type y) | |
value_type | operator* (const MathVector &v) const |
MathVector & | operator*= (const value_type &val) |
MathVector & | operator+= (const MathVector &v) |
MathVector & | operator+= (const value_type &val) |
MathVector | operator- () const |
MathVector & | operator-= (const MathVector &v) |
MathVector & | operator-= (const value_type &val) |
MathVector & | operator/= (const value_type &val) |
MathVector & | operator= (const MathVector &v) |
MathVector & | operator= (const value_type &val) |
value_type & | operator[] (std::size_t index) |
const value_type & | operator[] (std::size_t index) const |
void | set_coord (std::size_t index, value_type v) |
std::size_t | size () const |
value_type & | x () |
const value_type & | x () const |
value_type & | y () |
const value_type & | y () const |
Static Public Member Functions | |
static MathVector | from (const MathVector< 0, T > &v) |
static MathVector | from (const MathVector< 1, T > &v) |
static MathVector | from (const MathVector< 2, T > &v) |
static MathVector | from (const MathVector< 3, T > &v) |
static MathVector | from (const MathVector< 4, T > &v) |
template<std::size_t fromN> | |
static MathVector | from (const MathVector< fromN, T > &v) |
Public Attributes | |
value_type | m_data [2] |
Static Public Attributes | |
static const std::size_t | Size = 2 |
Protected Member Functions | |
void | assign (const MathVector< 2, T > &v) |
A mathematical Vector with 2 entries and static storage
typedef std::size_t ug::MathVector< 2, T >::size_type |
typedef T ug::MathVector< 2, T >::value_type |
|
inline |
References ug::MathVector< N, T >::m_data.
|
inline |
References ug::MathVector< N, T >::m_data.
|
inline |
References ug::MathVector< N, T >::m_data.
|
inline |
References ug::MathVector< N, T >::assign().
|
inlineprotected |
References m_data, and ug::MathVector< N, T >::m_data.
|
inline |
References ug::MathVector< N, T >::m_data.
|
inline |
References ug::MathVector< N, T >::m_data.
|
inlinestatic |
References ug::MathVector< N, T >::MathVector().
|
inlinestatic |
References ug::MathVector< N, T >::MathVector().
|
inlinestatic |
|
inlinestatic |
References ug::MathVector< N, T >::MathVector().
|
inlinestatic |
References ug::MathVector< N, T >::MathVector().
|
inlinestatic |
|
inline |
References ug::MathVector< N, T >::coord(), and ug::MathVector< N, T >::m_data.
|
inline |
References ug::MathVector< N, T >::m_data.
|
inline |
References ug::MathVector< N, T >::coord(), and ug::MathVector< N, T >::m_data.
|
inline |
References ug::MathVector< N, T >::m_data.
|
inline |
References ug::MathVector< N, T >::m_data.
|
inline |
References ug::MathVector< N, T >::coord(), and ug::MathVector< N, T >::m_data.
|
inline |
References ug::MathVector< N, T >::m_data.
|
inline |
References ug::MathVector< N, T >::m_data.
|
inline |
References ug::MathVector< N, T >::assign().
|
inline |
References ug::MathVector< N, T >::m_data.
|
inline |
References ug::MathVector< N, T >::m_data.
|
inline |
References ug::MathVector< N, T >::m_data.
|
inline |
References ug::MathVector< N, T >::m_data.
|
inline |
|
inline |
References ug::MathVector< N, T >::m_data.
|
inline |
References ug::MathVector< N, T >::m_data.
|
inline |
References ug::MathVector< N, T >::m_data.
|
inline |
References ug::MathVector< N, T >::m_data.
value_type ug::MathVector< 2, T >::m_data[2] |
Referenced by assign().
|
static |