ACT-CV - Machine Vision for Cognitive Modeling
Public Member Functions | Private Attributes | List of all members
Pos< dims, _t > Class Template Reference

fixed length vector that is interpreted as position More...

#include <Pos.h>

Collaboration diagram for Pos< dims, _t >:
Collaboration graph

Public Member Functions

 Pos ()
 
 Pos (_t x0, _t x1, _t x2)
 
 Pos (_t x0, _t x1)
 
 Pos (_t x0)
 
 Pos (const Pos< dims, _t > &p)
 
 Pos (const DMatrix< dims, 1 > &d)
 
void Zero ()
 set all elements to zero More...
 
_t & operator[] (unsigned int i)
 
_t operator[] (unsigned int i) const
 
Posoperator= (const Pos< dims, _t > &p)
 
Posoperator+= (const Pos< dims, _t > &p)
 
Posoperator-= (const Pos< dims, _t > &p)
 
Posoperator/= (const _t &skalar)
 
Posoperator*= (const _t &skalar)
 
Pos operator+ (const Pos< dims, _t > &p) const
 
Pos operator- (const Pos< dims, _t > &p) const
 
Pos operator* (const _t &skalar) const
 
Pos operator/ (const _t &skalar) const
 
_t ScalProd (const Pos< dims, _t > &p) const
 
 operator Pos< dims, double > () const
 
 operator DMatrix< dims, 1 > () const
 
Posoperator= (const DMatrix< dims, 1 > &d)
 

Private Attributes

_t pos [dims]
 

Detailed Description

template<unsigned int dims, class _t = int>
class Pos< dims, _t >

fixed length vector that is interpreted as position

position in n-dimensional (dims) euclidian space

Definition at line 43 of file Pos.h.

Constructor & Destructor Documentation

template<unsigned int dims, class _t = int>
Pos< dims, _t >::Pos ( )

Definition at line 47 of file Pos.h.

template<unsigned int dims, class _t = int>
Pos< dims, _t >::Pos ( _t  x0,
_t  x1,
_t  x2 
)
explicit

Definition at line 51 of file Pos.h.

template<unsigned int dims, class _t = int>
Pos< dims, _t >::Pos ( _t  x0,
_t  x1 
)
explicit

Definition at line 56 of file Pos.h.

template<unsigned int dims, class _t = int>
Pos< dims, _t >::Pos ( _t  x0)
explicit

Definition at line 60 of file Pos.h.

template<unsigned int dims, class _t = int>
Pos< dims, _t >::Pos ( const Pos< dims, _t > &  p)

Definition at line 64 of file Pos.h.

template<unsigned int dims, class _t = int>
Pos< dims, _t >::Pos ( const DMatrix< dims, 1 > &  d)
explicit

Definition at line 68 of file Pos.h.

Member Function Documentation

template<unsigned int dims, class _t = int>
Pos< dims, _t >::operator DMatrix< dims, 1 > ( ) const

Definition at line 148 of file Pos.h.

template<unsigned int dims, class _t = int>
Pos< dims, _t >::operator Pos< dims, double > ( ) const

Definition at line 142 of file Pos.h.

template<unsigned int dims, class _t = int>
Pos Pos< dims, _t >::operator* ( const _t &  skalar) const

Definition at line 124 of file Pos.h.

template<unsigned int dims, class _t = int>
Pos& Pos< dims, _t >::operator*= ( const _t &  skalar)

Definition at line 107 of file Pos.h.

template<unsigned int dims, class _t = int>
Pos Pos< dims, _t >::operator+ ( const Pos< dims, _t > &  p) const

Definition at line 112 of file Pos.h.

template<unsigned int dims, class _t = int>
Pos& Pos< dims, _t >::operator+= ( const Pos< dims, _t > &  p)

Definition at line 92 of file Pos.h.

template<unsigned int dims, class _t = int>
Pos Pos< dims, _t >::operator- ( const Pos< dims, _t > &  p) const

Definition at line 118 of file Pos.h.

template<unsigned int dims, class _t = int>
Pos& Pos< dims, _t >::operator-= ( const Pos< dims, _t > &  p)

Definition at line 97 of file Pos.h.

template<unsigned int dims, class _t = int>
Pos Pos< dims, _t >::operator/ ( const _t &  skalar) const

Definition at line 130 of file Pos.h.

template<unsigned int dims, class _t = int>
Pos& Pos< dims, _t >::operator/= ( const _t &  skalar)

Definition at line 102 of file Pos.h.

template<unsigned int dims, class _t = int>
Pos& Pos< dims, _t >::operator= ( const Pos< dims, _t > &  p)

Definition at line 87 of file Pos.h.

template<unsigned int dims, class _t = int>
Pos& Pos< dims, _t >::operator= ( const DMatrix< dims, 1 > &  d)

Definition at line 154 of file Pos.h.

template<unsigned int dims, class _t = int>
_t& Pos< dims, _t >::operator[] ( unsigned int  i)

Definition at line 79 of file Pos.h.

template<unsigned int dims, class _t = int>
_t Pos< dims, _t >::operator[] ( unsigned int  i) const

Definition at line 83 of file Pos.h.

template<unsigned int dims, class _t = int>
_t Pos< dims, _t >::ScalProd ( const Pos< dims, _t > &  p) const

Definition at line 136 of file Pos.h.

template<unsigned int dims, class _t = int>
void Pos< dims, _t >::Zero ( )

set all elements to zero

Definition at line 73 of file Pos.h.

Referenced by InitZero().

Member Data Documentation

template<unsigned int dims, class _t = int>
_t Pos< dims, _t >::pos[dims]
private

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


ACT-CV - Machine Vision for Cognitive Modeling
© 2015 Marc Halbruegge (actcvlibrary@googlemail.com)