vmml::vector< M, float_t > Class Template Reference

List of all members.

Public Types

typedef float_t float_type
typedef float_t value_type
typedef float_t * iterator
typedef const float_t * const_iterator

Public Member Functions

iterator begin ()
iterator end ()
const_iterator begin () const
const_iterator end () const
float_t & operator() (size_t index)
const float_t & operator() (size_t index) const
float_t & operator[] (size_t index)
const float_t & operator[] (size_t index) const
float_t & at (size_t index)
const float_t & at (size_t index) const
float_t & x ()
float_t & y ()
float_t & z ()
float_t & w ()
const float_t & x () const
const float_t & y () const
const float_t & z () const
const float_t & w () const
bool operator== (const vector &other) const
bool operator!= (const vector &other) const
bool isEqualTo (const vector &other, float_t tolerance=1e-15) const
const vectoroperator= (const float_t *c_array)
float_t operator= (float_t filler)
const vectoroperator= (const vector &other)
template<typename other_float_t >
void operator= (const vector< M, other_float_t > &other)
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 float_t other) const
vector operator/ (const float_t other) const
vector operator+ (const float_t other) const
vector operator- (const float_t other) const
void operator*= (const float_t other)
void operator/= (const float_t other)
void operator+= (const float_t other)
void operator-= (const float_t other)
vector operator- () const
void invert ()
 vector (float_t a)
 vector (float_t x, float_t y)
 vector (float_t x, float_t y, float_t z)
 vector (float_t x, float_t y, float_t z, float_t w)
void set (float_t a)
void set (const vector< M-1, float_t > &v, float_t a)
void set (float_t x, float_t y)
void set (float_t x, float_t y, float_t z)
void set (float_t x, float_t y, float_t z, float_t w)
vector cross (const vector &rhs) const
void cross (const vector &a, const vector &b)
float_t dot (const vector &other) const
void normalize ()
vector getNormalized () const
float_t norm () const
float_t normSquared () const
float_t length () const
float_t lengthSquared () const
float_t distance (const vector &other) const
float_t distanceSquared (const vector &other) const
void computeNormal (const vector &v0, const vector &v1, const vector &v2)
vector computeNormal (const vector &v1, const vector &v2) const
vector< 3, float_t > projectPointOntoSphere (const vector< 3, float_t > &point) const
float_t getDistanceToSphere (const vector< 3, float_t > &point) const
vector< 3, float_t > & getSphereCenter ()
const vector< 3, float_t > & getSphereCenter () const
vector< 3, float_t > projectPointOntoPlane (const vector< 3, float_t > &point) const
float_t getDistanceToPlane (const vector< 3, float_t > &point) const
void normalizePlane ()
size_t getSmallestComponentIndex () const
size_t getLargestComponentIndex () const
float_t & getSmallestComponent ()
float_t & getLargestComponent ()
const float_t & getSmallestComponent () const
const float_t & getLargestComponent () const
void copyFrom1DimCArray (const float_t *c_array)
template<typename different_float_t >
void copyFrom1DimCArray (const different_float_t *c_array)
void scale_to_8bit_uint (vector< M, uint8_t > &scaled_vector, float_t min_value=-1.0, float_t max_value=1.0) const

Static Public Member Functions

static size_t size ()

Public Attributes

float_t array [M]

Static Public Attributes

static const size_t DIMENSION = M
static const vector FORWARD
static const vector BACKWARD
static const vector UP
static const vector DOWN
static const vector LEFT
static const vector RIGHT
static const vector ONE
static const vector ZERO
static const vector UNIT_X
static const vector UNIT_Y
static const vector UNIT_Z

Friends

std::ostream & operator<< (std::ostream &os, const vector &vector_)

template<size_t M, typename float_t = double>
class vmml::vector< M, float_t >


The documentation for this class was generated from the following file:

Generated by  doxygen 1.6.2