libmoldeo (Moldeo 1.0 Core)  1.0
libmoldeo is the group of objects and functions that executes the basic operations of Moldeo 1.0 Platform.
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
moVector2< Real > Class Template Reference

#include <moMathVector.h>

Inheritance diagram for moVector2< Real >:
moAbstract

Public Member Functions

 moVector2 ()
 
 moVector2 (Real fX, Real fY)
 
 moVector2 (const Real *afTuple)
 
 moVector2 (const moVector2 &rkV)
 
 operator const Real * () const
 
 operator Real * ()
 
Real operator[] (int i) const
 
Real & operator[] (int i)
 
Real X () const
 
Real & X ()
 
Real Y () const
 
Real & Y ()
 
moVector2operator= (const moVector2 &rkV)
 
bool operator== (const moVector2 &rkV) const
 
bool operator!= (const moVector2 &rkV) const
 
bool operator< (const moVector2 &rkV) const
 
bool operator<= (const moVector2 &rkV) const
 
bool operator> (const moVector2 &rkV) const
 
bool operator>= (const moVector2 &rkV) const
 
moVector2 operator+ (const moVector2 &rkV) const
 
moVector2 operator- (const moVector2 &rkV) const
 
moVector2 operator* (Real fScalar) const
 
moVector2 operator/ (Real fScalar) const
 
moVector2 operator- () const
 
moVector2operator+= (const moVector2 &rkV)
 
moVector2operator-= (const moVector2 &rkV)
 
moVector2operator*= (Real fScalar)
 
moVector2operator/= (Real fScalar)
 
Real Length () const
 
Real SquaredLength () const
 
Real Dot (const moVector2 &rkV) const
 
Real Normalize ()
 
moVector2 Perp () const
 returns (y,-x) More...
 
moVector2 UnitPerp () const
 returns (y,-x)/sqrt(x*x+y*y) More...
 
Real DotPerp (const moVector2 &rkV) const
 returns DotPerp((x,y),(V.x,V.y)) = x*V.y - y*V.x More...
 
void GetBarycentrics (const moVector2 &rkV0, const moVector2 &rkV1, const moVector2 &rkV2, Real afBary[3]) const
 
Real Cosine (const moVector2< Real > &rkV)
 
Real Angle (const moVector2< Real > &rkV)
 
template<>
const moVector2< MOlongUNIT_Y (0, 1)
 
template<>
const moVector2< MOlongONE (1, 1)
 
template<>
const moVector2< MOdoubleZERO (0.0, 0.0)
 
template<>
const moVector2< MOdoubleUNIT_X (1.0, 0.0)
 
template<>
const moVector2< MOdoubleUNIT_Y (0.0, 1.0)
 
template<>
const moVector2< MOdoubleONE (1.0, 1.0)
 
- Public Member Functions inherited from moAbstract
 moAbstract ()
 
virtual ~moAbstract ()
 
virtual MOboolean Init ()
 Inicializa el objeto. More...
 
virtual MOboolean Finish ()
 Finaliza el objeto, libera recursos. More...
 
MOboolean Initialized ()
 Pregunta si está inicializado. More...
 

Static Public Member Functions

static void Orthonormalize (moVector2 &rkU, moVector2 &rkV)
 
static void GenerateOrthonormalBasis (moVector2 &rkU, moVector2 &rkV)
 
static void ComputeExtremes (int iVQuantity, const moVector2 *akPoint, moVector2 &rkMin, moVector2 &rkMax)
 

Static Public Attributes

static const moVector2 ZERO
 
static const moVector2 UNIT_X
 
static const moVector2 UNIT_Y
 
static const moVector2 ONE
 
- Static Public Attributes inherited from moAbstract
static moDebugMODebug2 = new moDebug()
 Clase de impresión de errores para depuración More...
 
static moTextHeapMODebug = new moTextHeap()
 Lista de textos. More...
 

Additional Inherited Members

- Public Attributes inherited from moAbstract
MOboolean m_bInitialized
 Valor de inicialización More...
 

Detailed Description

template<class Real>
class moVector2< Real >

Definition at line 46 of file moMathVector.h.

Constructor & Destructor Documentation

template<class Real>
moVector2< Real >::moVector2 ( )
inline

Definition at line 50 of file moMathVector.h.

template<class Real>
moVector2< Real >::moVector2 ( Real  fX,
Real  fY 
)
inline

Definition at line 52 of file moMathVector.h.

template<class Real>
moVector2< Real >::moVector2 ( const Real *  afTuple)
inline

Definition at line 59 of file moMathVector.h.

template<class Real>
moVector2< Real >::moVector2 ( const moVector2< Real > &  rkV)
inline

Definition at line 66 of file moMathVector.h.

Member Function Documentation

template<class Real>
Real moVector2< Real >::Angle ( const moVector2< Real > &  rkV)
inline

Definition at line 386 of file moMathVector.h.

template<class Real>
static void moVector2< Real >::ComputeExtremes ( int  iVQuantity,
const moVector2< Real > *  akPoint,
moVector2< Real > &  rkMin,
moVector2< Real > &  rkMax 
)
inlinestatic

Definition at line 355 of file moMathVector.h.

template<class Real>
Real moVector2< Real >::Cosine ( const moVector2< Real > &  rkV)
inline

Definition at line 379 of file moMathVector.h.

template<class Real>
Real moVector2< Real >::Dot ( const moVector2< Real > &  rkV) const
inline

Definition at line 176 of file moMathVector.h.

template<class Real>
Real moVector2< Real >::DotPerp ( const moVector2< Real > &  rkV) const
inline

returns DotPerp((x,y),(V.x,V.y)) = x*V.y - y*V.x

Definition at line 212 of file moMathVector.h.

template<class Real>
static void moVector2< Real >::GenerateOrthonormalBasis ( moVector2< Real > &  rkU,
moVector2< Real > &  rkV 
)
inlinestatic

Definition at line 347 of file moMathVector.h.

template<class Real>
void moVector2< Real >::GetBarycentrics ( const moVector2< Real > &  rkV0,
const moVector2< Real > &  rkV1,
const moVector2< Real > &  rkV2,
Real  afBary[3] 
) const
inline

Definition at line 218 of file moMathVector.h.

template<class Real>
Real moVector2< Real >::Length ( ) const
inline

Definition at line 170 of file moMathVector.h.

template<class Real>
Real moVector2< Real >::Normalize ( )
inline

Definition at line 179 of file moMathVector.h.

template<>
const moVector2< MOlong > moVector2< MOlong >::ONE ( ,
 
)
template<>
const moVector2< MOdouble > moVector2< MOdouble >::ONE ( 1.  0,
1.  0 
)
template<class Real>
moVector2< Real >::operator const Real * ( ) const
inline

Definition at line 73 of file moMathVector.h.

template<class Real>
moVector2< Real >::operator Real * ( )
inline

Definition at line 74 of file moMathVector.h.

template<class Real>
bool moVector2< Real >::operator!= ( const moVector2< Real > &  rkV) const
inline

Definition at line 92 of file moMathVector.h.

template<class Real>
moVector2 moVector2< Real >::operator* ( Real  fScalar) const
inline

Definition at line 108 of file moMathVector.h.

template<class Real>
moVector2& moVector2< Real >::operator*= ( Real  fScalar)
inline

Definition at line 147 of file moMathVector.h.

template<class Real>
moVector2 moVector2< Real >::operator+ ( const moVector2< Real > &  rkV) const
inline

Definition at line 99 of file moMathVector.h.

template<class Real>
moVector2& moVector2< Real >::operator+= ( const moVector2< Real > &  rkV)
inline

Definition at line 135 of file moMathVector.h.

template<class Real>
moVector2 moVector2< Real >::operator- ( const moVector2< Real > &  rkV) const
inline

Definition at line 104 of file moMathVector.h.

template<class Real>
moVector2 moVector2< Real >::operator- ( ) const
inline

Definition at line 129 of file moMathVector.h.

template<class Real>
moVector2& moVector2< Real >::operator-= ( const moVector2< Real > &  rkV)
inline

Definition at line 141 of file moMathVector.h.

template<class Real>
moVector2 moVector2< Real >::operator/ ( Real  fScalar) const
inline

Definition at line 112 of file moMathVector.h.

template<class Real>
moVector2& moVector2< Real >::operator/= ( Real  fScalar)
inline

Definition at line 153 of file moMathVector.h.

template<class Real>
bool moVector2< Real >::operator< ( const moVector2< Real > &  rkV) const
inline

Definition at line 93 of file moMathVector.h.

template<class Real>
bool moVector2< Real >::operator<= ( const moVector2< Real > &  rkV) const
inline

Definition at line 94 of file moMathVector.h.

template<class Real>
moVector2& moVector2< Real >::operator= ( const moVector2< Real > &  rkV)
inline

Definition at line 83 of file moMathVector.h.

template<class Real>
bool moVector2< Real >::operator== ( const moVector2< Real > &  rkV) const
inline

Definition at line 91 of file moMathVector.h.

template<class Real>
bool moVector2< Real >::operator> ( const moVector2< Real > &  rkV) const
inline

Definition at line 95 of file moMathVector.h.

template<class Real>
bool moVector2< Real >::operator>= ( const moVector2< Real > &  rkV) const
inline

Definition at line 96 of file moMathVector.h.

template<class Real>
Real moVector2< Real >::operator[] ( int  i) const
inline

Definition at line 75 of file moMathVector.h.

template<class Real>
Real& moVector2< Real >::operator[] ( int  i)
inline

Definition at line 76 of file moMathVector.h.

template<class Real>
static void moVector2< Real >::Orthonormalize ( moVector2< Real > &  rkU,
moVector2< Real > &  rkV 
)
inlinestatic

Definition at line 325 of file moMathVector.h.

template<class Real>
moVector2 moVector2< Real >::Perp ( ) const
inline

returns (y,-x)

Definition at line 199 of file moMathVector.h.

template<class Real>
Real moVector2< Real >::SquaredLength ( ) const
inline

Definition at line 173 of file moMathVector.h.

template<>
const moVector2< MOdouble > moVector2< MOdouble >::UNIT_X ( 1.  0,
0.  0 
)
template<>
const moVector2< MOlong > moVector2< MOlong >::UNIT_Y ( ,
 
)
template<>
const moVector2< MOdouble > moVector2< MOdouble >::UNIT_Y ( 0.  0,
1.  0 
)
template<class Real>
moVector2 moVector2< Real >::UnitPerp ( ) const
inline

returns (y,-x)/sqrt(x*x+y*y)

Definition at line 205 of file moMathVector.h.

template<class Real>
Real moVector2< Real >::X ( ) const
inline

Definition at line 77 of file moMathVector.h.

template<class Real>
Real& moVector2< Real >::X ( )
inline

Definition at line 78 of file moMathVector.h.

template<class Real>
Real moVector2< Real >::Y ( ) const
inline

Definition at line 79 of file moMathVector.h.

template<class Real>
Real& moVector2< Real >::Y ( )
inline

Definition at line 80 of file moMathVector.h.

template<>
const moVector2< MOdouble > moVector2< MOdouble >::ZERO ( 0.  0,
0.  0 
)

Member Data Documentation

template<class Real>
const moVector2 moVector2< Real >::ONE
static

Definition at line 394 of file moMathVector.h.

template<class Real>
const moVector2 moVector2< Real >::UNIT_X
static

Definition at line 392 of file moMathVector.h.

template<class Real>
const moVector2 moVector2< Real >::UNIT_Y
static

Definition at line 393 of file moMathVector.h.

template<class Real>
const moVector2 moVector2< Real >::ZERO
static

Definition at line 391 of file moMathVector.h.


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