#include <Wm4Vector2.h>
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 |
Vector2 & | operator*= (Real fScalar) |
Vector2 | operator+ (const Vector2 &rkV) const |
Vector2 & | operator+= (const Vector2 &rkV) |
Vector2 | operator- () const |
Vector2 | operator- (const Vector2 &rkV) const |
Vector2 & | operator-= (const Vector2 &rkV) |
Vector2 | operator/ (Real fScalar) const |
Vector2 & | operator/= (Real fScalar) |
bool | operator< (const Vector2 &rkV) const |
bool | operator<= (const Vector2 &rkV) const |
Vector2 & | operator= (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 |
Definition at line 26 of file Wm4Vector2.h.
Wm4::Vector2< Real >::Vector2 | ( | ) | [inline] |
Definition at line 21 of file Wm4Vector2.inl.
Referenced by Wm4::Vector2< Real >::operator*(), Wm4::Vector2< Real >::operator+(), Wm4::Vector2< Real >::operator-(), and Wm4::Vector2< Real >::Perp().
Wm4::Vector2< Real >::Vector2 | ( | Real | fX, | |
Real | fY | |||
) | [inline] |
Definition at line 27 of file Wm4Vector2.inl.
Wm4::Vector2< Real >::Vector2 | ( | const Real * | afTuple | ) | [inline] |
Definition at line 34 of file Wm4Vector2.inl.
Wm4::Vector2< Real >::Vector2 | ( | const Vector2< Real > & | rkV | ) | [inline] |
Definition at line 41 of file Wm4Vector2.inl.
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.
Real Wm4::Vector2< Real >::Dot | ( | const Vector2< Real > & | rkV | ) | const [inline] |
Definition at line 264 of file Wm4Vector2.inl.
Referenced by Wm4::Triangle2< Real >::DistanceTo(), Wm4::IntrTriangle2Triangle2< Real >::Find(), Wm4::Vector2< Real >::GetBarycentrics(), Wm4::Vector2< Real >::Orthonormalize(), Wm4::Matrix2< Real >::QForm(), and Wm4::IntrTriangle2Triangle2< Real >::Test().
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().
void Wm4::Vector2< Real >::GenerateOrthonormalBasis | ( | Vector2< Real > & | rkU, | |
Vector2< Real > & | rkV | |||
) | [inline, static] |
Definition at line 438 of file Wm4Vector2.inl.
References Wm4::Vector2< Real >::Normalize(), and Wm4::Vector2< Real >::Perp().
void Wm4::Vector2< Real >::GetBarycentrics | ( | const Vector2< Real > & | rkV0, | |
const Vector2< Real > & | rkV1, | |||
const Vector2< Real > & | rkV2, | |||
Real | afBary[3] | |||
) | const [inline] |
Definition at line 313 of file Wm4Vector2.inl.
References Wm4::Vector2< Real >::Dot(), Wm4::Vector2< Real >::DotPerp(), and Wm4::Vector2< Real >::SquaredLength().
Referenced by Wm4::Delaunay2< Real >::GetBarycentricSet().
Real Wm4::Vector2< Real >::Length | ( | void | ) | const [inline] |
Definition at line 248 of file Wm4Vector2.inl.
Referenced by Wm4::Vector2< Real >::Normalize().
Real Wm4::Vector2< Real >::Normalize | ( | void | ) | [inline] |
Definition at line 272 of file Wm4Vector2.inl.
References Wm4::Vector2< Real >::Length().
Referenced by Wm4::Vector2< Real >::GenerateOrthonormalBasis(), Wm4::MeshCurvature< Real >::MeshCurvature(), Wm4::Vector2< Real >::Orthonormalize(), and Wm4::Vector2< Real >::UnitPerp().
Wm4::Vector2< Real >::operator const Real * | ( | ) | const [inline] |
Definition at line 48 of file Wm4Vector2.inl.
Wm4::Vector2< Real >::operator Real * | ( | ) | [inline] |
Definition at line 54 of file Wm4Vector2.inl.
bool Wm4::Vector2< Real >::operator!= | ( | const Vector2< Real > & | rkV | ) | const [inline] |
Definition at line 116 of file Wm4Vector2.inl.
Vector2< Real > Wm4::Vector2< Real >::operator* | ( | Real | fScalar | ) | const [inline] |
Definition at line 162 of file Wm4Vector2.inl.
References Wm4::Vector2< Real >::Vector2().
Vector2< Real > & Wm4::Vector2< Real >::operator*= | ( | Real | fScalar | ) | [inline] |
Definition at line 222 of file Wm4Vector2.inl.
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().
Vector2< Real > & Wm4::Vector2< Real >::operator+= | ( | const Vector2< Real > & | rkV | ) | [inline] |
Definition at line 206 of file Wm4Vector2.inl.
Vector2< Real > Wm4::Vector2< Real >::operator- | ( | void | ) | const [inline] |
Definition at line 190 of file Wm4Vector2.inl.
References Wm4::Vector2< Real >::Vector2().
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().
Vector2< Real > & Wm4::Vector2< Real >::operator-= | ( | const Vector2< Real > & | rkV | ) | [inline] |
Definition at line 214 of file Wm4Vector2.inl.
Vector2< Real > Wm4::Vector2< Real >::operator/ | ( | Real | fScalar | ) | const [inline] |
Definition at line 170 of file Wm4Vector2.inl.
Vector2< Real > & Wm4::Vector2< Real >::operator/= | ( | Real | fScalar | ) | [inline] |
Definition at line 230 of file Wm4Vector2.inl.
bool Wm4::Vector2< Real >::operator< | ( | const Vector2< Real > & | rkV | ) | const [inline] |
Definition at line 122 of file Wm4Vector2.inl.
bool Wm4::Vector2< Real >::operator<= | ( | const Vector2< Real > & | rkV | ) | const [inline] |
Definition at line 128 of file Wm4Vector2.inl.
Vector2< Real > & Wm4::Vector2< Real >::operator= | ( | const Vector2< Real > & | rkV | ) | [inline] |
Definition at line 96 of file Wm4Vector2.inl.
bool Wm4::Vector2< Real >::operator== | ( | const Vector2< Real > & | rkV | ) | const [inline] |
Definition at line 110 of file Wm4Vector2.inl.
bool Wm4::Vector2< Real >::operator> | ( | const Vector2< Real > & | rkV | ) | const [inline] |
Definition at line 134 of file Wm4Vector2.inl.
bool Wm4::Vector2< Real >::operator>= | ( | const Vector2< Real > & | rkV | ) | const [inline] |
Definition at line 140 of file Wm4Vector2.inl.
Real & Wm4::Vector2< Real >::operator[] | ( | int | i | ) | [inline] |
Definition at line 66 of file Wm4Vector2.inl.
Real Wm4::Vector2< Real >::operator[] | ( | int | i | ) | const [inline] |
Definition at line 60 of file Wm4Vector2.inl.
void Wm4::Vector2< Real >::Orthonormalize | ( | Vector2< Real > & | rkU, | |
Vector2< Real > & | rkV | |||
) | [inline, static] |
Definition at line 417 of file Wm4Vector2.inl.
References Wm4::Vector2< Real >::Dot(), and Wm4::Vector2< Real >::Normalize().
Vector2< Real > Wm4::Vector2< Real >::Perp | ( | ) | const [inline] |
Definition at line 293 of file Wm4Vector2.inl.
References Wm4::Vector2< Real >::Vector2().
Referenced by Wm4::Vector2< Real >::GenerateOrthonormalBasis().
Real Wm4::Vector2< Real >::SquaredLength | ( | ) | const [inline] |
Definition at line 256 of file Wm4Vector2.inl.
Referenced by Wm4::Triangle2< Real >::DistanceTo(), Wm4::Vector2< Real >::GetBarycentrics(), and Wm4::MeshCurvature< Real >::MeshCurvature().
Vector2< Real > Wm4::Vector2< Real >::UnitPerp | ( | ) | const [inline] |
Definition at line 299 of file Wm4Vector2.inl.
References Wm4::Vector2< Real >::Normalize().
Real & Wm4::Vector2< Real >::X | ( | ) | [inline] |
Definition at line 78 of file Wm4Vector2.inl.
Real Wm4::Vector2< Real >::X | ( | ) | const [inline] |
Definition at line 72 of file Wm4Vector2.inl.
Referenced by Wm4::IntrTriangle2Triangle2< Real >::Find(), Wm4::MeshCurvature< Real >::MeshCurvature(), Wm4::operator<<(), and Wm4::IntrTriangle2Triangle2< Real >::Test().
Real & Wm4::Vector2< Real >::Y | ( | ) | [inline] |
Definition at line 90 of file Wm4Vector2.inl.
Real Wm4::Vector2< Real >::Y | ( | ) | const [inline] |
Definition at line 84 of file Wm4Vector2.inl.
Referenced by Wm4::IntrTriangle2Triangle2< Real >::Find(), Wm4::MeshCurvature< Real >::MeshCurvature(), and Wm4::IntrTriangle2Triangle2< Real >::Test().
const Vector2 Wm4::Vector2< Real >::ONE [static] |
Definition at line 107 of file Wm4Vector2.h.
const Vector2 Wm4::Vector2< Real >::UNIT_X [static] |
Definition at line 105 of file Wm4Vector2.h.
const Vector2 Wm4::Vector2< Real >::UNIT_Y [static] |
Definition at line 106 of file Wm4Vector2.h.
const Vector2 Wm4::Vector2< Real >::ZERO [static] |
Definition at line 104 of file Wm4Vector2.h.