Wm4::Vector2< Real > Class Template Reference

#include <Wm4Vector2.h>

List of all members.

Public Member Functions

Real Dot (const Vector2 &rkV) const
Real DotPerp (const Vector2 &rkV) const
void GetBarycentrics (const Vector2 &rkV0, const Vector2 &rkV1, const Vector2 &rkV2, Real afBary[3]) const
Real Length () const
Real Normalize ()
 operator const Real * () const
 operator Real * ()
bool operator!= (const Vector2 &rkV) const
Vector2 operator* (Real fScalar) const
Vector2operator*= (Real fScalar)
Vector2 operator+ (const Vector2 &rkV) const
Vector2operator+= (const Vector2 &rkV)
Vector2 operator- () const
Vector2 operator- (const Vector2 &rkV) const
Vector2operator-= (const Vector2 &rkV)
Vector2 operator/ (Real fScalar) const
Vector2operator/= (Real fScalar)
bool operator< (const Vector2 &rkV) const
bool operator<= (const Vector2 &rkV) const
Vector2operator= (const Vector2 &rkV)
bool operator== (const Vector2 &rkV) const
bool operator> (const Vector2 &rkV) const
bool operator>= (const Vector2 &rkV) const
Real & operator[] (int i)
Real operator[] (int i) const
Vector2 Perp () const
Real SquaredLength () const
Vector2 UnitPerp () const
 Vector2 (const Vector2 &rkV)
 Vector2 (const Real *afTuple)
 Vector2 (Real fX, Real fY)
 Vector2 ()
Real & X ()
Real X () const
Real & Y ()
Real Y () const

Static Public Member Functions

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

Static Public Attributes

static const Vector2 ONE
static const Vector2 UNIT_X
static const Vector2 UNIT_Y
static const Vector2 ZERO

Detailed Description

template<class Real>
class Wm4::Vector2< Real >

Definition at line 26 of file Wm4Vector2.h.


Constructor & Destructor Documentation

template<class Real >
Wm4::Vector2< Real >::Vector2 (  )  [inline]
template<class Real >
Wm4::Vector2< Real >::Vector2 ( Real  fX,
Real  fY 
) [inline]

Definition at line 27 of file Wm4Vector2.inl.

template<class Real >
Wm4::Vector2< Real >::Vector2 ( const Real *  afTuple  )  [inline]

Definition at line 34 of file Wm4Vector2.inl.

template<class Real >
Wm4::Vector2< Real >::Vector2 ( const Vector2< Real > &  rkV  )  [inline]

Definition at line 41 of file Wm4Vector2.inl.


Member Function Documentation

template<class Real >
void Wm4::Vector2< Real >::ComputeExtremes ( int  iVQuantity,
const Vector2< Real > *  akPoint,
Vector2< Real > &  rkMin,
Vector2< Real > &  rkMax 
) [inline, static]

Definition at line 445 of file Wm4Vector2.inl.

template<class Real >
Real Wm4::Vector2< Real >::Dot ( const Vector2< Real > &  rkV  )  const [inline]
template<class Real >
Real Wm4::Vector2< Real >::DotPerp ( const Vector2< Real > &  rkV  )  const [inline]

Definition at line 307 of file Wm4Vector2.inl.

Referenced by Wm4::Vector2< Real >::GetBarycentrics().

template<class Real >
void Wm4::Vector2< Real >::GenerateOrthonormalBasis ( Vector2< Real > &  rkU,
Vector2< Real > &  rkV 
) [inline, static]
template<class Real >
void Wm4::Vector2< Real >::GetBarycentrics ( const Vector2< Real > &  rkV0,
const Vector2< Real > &  rkV1,
const Vector2< Real > &  rkV2,
Real  afBary[3] 
) const [inline]
template<class Real >
Real Wm4::Vector2< Real >::Length ( void   )  const [inline]

Definition at line 248 of file Wm4Vector2.inl.

Referenced by Wm4::Vector2< Real >::Normalize().

template<class Real >
Real Wm4::Vector2< Real >::Normalize ( void   )  [inline]
template<class Real >
Wm4::Vector2< Real >::operator const Real * (  )  const [inline]

Definition at line 48 of file Wm4Vector2.inl.

template<class Real >
Wm4::Vector2< Real >::operator Real * (  )  [inline]

Definition at line 54 of file Wm4Vector2.inl.

template<class Real >
bool Wm4::Vector2< Real >::operator!= ( const Vector2< Real > &  rkV  )  const [inline]

Definition at line 116 of file Wm4Vector2.inl.

template<class Real >
Vector2< Real > Wm4::Vector2< Real >::operator* ( Real  fScalar  )  const [inline]

Definition at line 162 of file Wm4Vector2.inl.

References Wm4::Vector2< Real >::Vector2().

template<class Real >
Vector2< Real > & Wm4::Vector2< Real >::operator*= ( Real  fScalar  )  [inline]

Definition at line 222 of file Wm4Vector2.inl.

template<class Real >
Vector2< Real > Wm4::Vector2< Real >::operator+ ( const Vector2< Real > &  rkV  )  const [inline]

Definition at line 146 of file Wm4Vector2.inl.

References Wm4::Vector2< Real >::Vector2().

template<class Real >
Vector2< Real > & Wm4::Vector2< Real >::operator+= ( const Vector2< Real > &  rkV  )  [inline]

Definition at line 206 of file Wm4Vector2.inl.

template<class Real >
Vector2< Real > Wm4::Vector2< Real >::operator- ( void   )  const [inline]

Definition at line 190 of file Wm4Vector2.inl.

References Wm4::Vector2< Real >::Vector2().

template<class Real >
Vector2< Real > Wm4::Vector2< Real >::operator- ( const Vector2< Real > &  rkV  )  const [inline]

Definition at line 154 of file Wm4Vector2.inl.

References Wm4::Vector2< Real >::Vector2().

template<class Real >
Vector2< Real > & Wm4::Vector2< Real >::operator-= ( const Vector2< Real > &  rkV  )  [inline]

Definition at line 214 of file Wm4Vector2.inl.

template<class Real >
Vector2< Real > Wm4::Vector2< Real >::operator/ ( Real  fScalar  )  const [inline]

Definition at line 170 of file Wm4Vector2.inl.

template<class Real >
Vector2< Real > & Wm4::Vector2< Real >::operator/= ( Real  fScalar  )  [inline]

Definition at line 230 of file Wm4Vector2.inl.

template<class Real >
bool Wm4::Vector2< Real >::operator< ( const Vector2< Real > &  rkV  )  const [inline]

Definition at line 122 of file Wm4Vector2.inl.

template<class Real >
bool Wm4::Vector2< Real >::operator<= ( const Vector2< Real > &  rkV  )  const [inline]

Definition at line 128 of file Wm4Vector2.inl.

template<class Real >
Vector2< Real > & Wm4::Vector2< Real >::operator= ( const Vector2< Real > &  rkV  )  [inline]

Definition at line 96 of file Wm4Vector2.inl.

template<class Real >
bool Wm4::Vector2< Real >::operator== ( const Vector2< Real > &  rkV  )  const [inline]

Definition at line 110 of file Wm4Vector2.inl.

template<class Real >
bool Wm4::Vector2< Real >::operator> ( const Vector2< Real > &  rkV  )  const [inline]

Definition at line 134 of file Wm4Vector2.inl.

template<class Real >
bool Wm4::Vector2< Real >::operator>= ( const Vector2< Real > &  rkV  )  const [inline]

Definition at line 140 of file Wm4Vector2.inl.

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

Definition at line 66 of file Wm4Vector2.inl.

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

Definition at line 60 of file Wm4Vector2.inl.

template<class Real >
void Wm4::Vector2< Real >::Orthonormalize ( Vector2< Real > &  rkU,
Vector2< Real > &  rkV 
) [inline, static]
template<class Real >
Vector2< Real > Wm4::Vector2< Real >::Perp (  )  const [inline]
template<class Real >
Real Wm4::Vector2< Real >::SquaredLength (  )  const [inline]
template<class Real >
Vector2< Real > Wm4::Vector2< Real >::UnitPerp (  )  const [inline]

Definition at line 299 of file Wm4Vector2.inl.

References Wm4::Vector2< Real >::Normalize().

template<class Real >
Real & Wm4::Vector2< Real >::X (  )  [inline]

Definition at line 78 of file Wm4Vector2.inl.

template<class Real >
Real Wm4::Vector2< Real >::X (  )  const [inline]
template<class Real >
Real & Wm4::Vector2< Real >::Y (  )  [inline]

Definition at line 90 of file Wm4Vector2.inl.

template<class Real >
Real Wm4::Vector2< Real >::Y (  )  const [inline]

Member Data Documentation

template<class Real>
const Vector2 Wm4::Vector2< Real >::ONE [static]

Definition at line 107 of file Wm4Vector2.h.

template<class Real>
const Vector2 Wm4::Vector2< Real >::UNIT_X [static]

Definition at line 105 of file Wm4Vector2.h.

template<class Real>
const Vector2 Wm4::Vector2< Real >::UNIT_Y [static]

Definition at line 106 of file Wm4Vector2.h.

template<class Real>
const Vector2 Wm4::Vector2< Real >::ZERO [static]

Definition at line 104 of file Wm4Vector2.h.


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

Generated on Wed Nov 23 19:02:50 2011 for FreeCAD by  doxygen 1.6.1