|
Métodos públicos |
| | 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 () |
| moVector2 & | operator= (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 |
| moVector2 & | operator+= (const moVector2 &rkV) |
| moVector2 & | operator-= (const moVector2 &rkV) |
| moVector2 & | operator *= (Real fScalar) |
| moVector2 & | operator/= (Real fScalar) |
| Real | Length () const |
| Real | SquaredLength () const |
| Real | Dot (const moVector2 &rkV) const |
| Real | Normalize () |
| moVector2 | Perp () const |
| | returns (y,-x)
|
| moVector2 | UnitPerp () const |
| | returns (y,-x)/sqrt(x*x+y*y)
|
| Real | DotPerp (const moVector2 &rkV) const |
| | returns DotPerp((x,y),(V.x,V.y)) = x*V.y - y*V.x
|
| 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) |
Métodos públicos estáticos |
| 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) |
Atributos públicos estáticos |
| static const moVector2 | ZERO |
| static const moVector2 | UNIT_X |
| static const moVector2 | UNIT_Y |
| static const moVector2 | ONE |
Métodos privados |
| int | CompareArrays (const moVector2 &rkV) const |
Atributos privados |
| Real | m_afTuple [2] |