#include <Vector2D.hpp>
Public Methods | |
| JVector2D () | |
| JVector2D (const JVector2D &v) | |
| JVector2D (const double x, const double y) | |
| JVector2D & | operator= (const JVector2D &v) |
| BOOL | operator== (const JVector2D &v) const |
| BOOL | operator!= (const JVector2D &v) const |
| void | operator+= (const JVector2D &v) |
| void | operator-= (const JVector2D &v) |
| void | operator *= (const JVector2D &v) |
| void | operator/= (const JVector2D &v) |
| void | operator *= (const double r) |
| void | operator/= (const double r) |
| double | X () const |
| double | X (const double x) |
| double | Y () const |
| double | Y (const double y) |
| void | Set (const double x, const double y) |
| BOOL | bAtOrg () const |
| double | Magnitude () const |
| void | Negate () |
| void | Normalize () |
| void | Square () |
| void | ToRadians () |
| JVector2D () | |
| JVector2D (const JVector2D &v) | |
| JVector2D (const double x, const double y) | |
| JVector2D & | operator= (const JVector2D &v) |
| BOOL | operator== (const JVector2D &v) const |
| BOOL | operator!= (const JVector2D &v) const |
| void | operator+= (const JVector2D &v) |
| void | operator-= (const JVector2D &v) |
| void | operator *= (const JVector2D &v) |
| void | operator/= (const JVector2D &v) |
| void | operator *= (const double r) |
| void | operator/= (const double r) |
| double | X () const |
| double | X (const double x) |
| double | Y () const |
| double | Y (const double y) |
| void | Set (const double x, const double y) |
| BOOL | bAtOrg () const |
| double | Magnitude () const |
| void | Negate () |
| void | Normalize () |
| void | Square () |
| void | ToRadians () |
Private Attributes | |
| double | X |
| double | Y |
Friends | |
| JVector2D | operator+ (const JVector2D &left, const JVector2D &right) |
| JVector2D | operator- (const JVector2D &left, const JVector2D &right) |
| JVector2D | operator * (const JVector2D &left, const JVector2D &right) |
| JVector2D | operator/ (const JVector2D &left, const JVector2D &right) |
| JVector2D | operator * (const JVector2D &left, const double r) |
| JVector2D | operator/ (const JVector2D &left, const double r) |
| double | Dot (const JVector2D &left, const JVector2D &right) |
| JVector2D | vecHalfBetween (const JVector2D &left, const JVector2D &right) |
| JVector2D | operator+ (const JVector2D &left, const JVector2D &right) |
| JVector2D | operator- (const JVector2D &left, const JVector2D &right) |
| JVector2D | operator * (const JVector2D &left, const JVector2D &right) |
| JVector2D | operator/ (const JVector2D &left, const JVector2D &right) |
| JVector2D | operator * (const JVector2D &left, const double r) |
| JVector2D | operator/ (const JVector2D &left, const double r) |
| double | Dot (const JVector2D &left, const JVector2D &right) |
| JVector2D | vecHalfBetween (const JVector2D &left, const JVector2D &right) |
|
|
Definition at line 6 of file Vector2D.cpp. Referenced by MATH_PI().
|
|
|
Definition at line 9 of file Vector2D.cpp. |
|
||||||||||||
|
Definition at line 12 of file Vector2D.cpp. |
|
|
|
|
|
|
|
||||||||||||
|
|
|
|
|
|
|
Definition at line 95 of file Vector2D.cpp. Referenced by MATH_PI().
00095 {
00096 return sqrt( (X * X) + (Y * Y) );
00097 }
|
|
|
|
|
|
Definition at line 137 of file Vector2D.cpp. Referenced by MATH_PI().
00137 {
00138 X = -X;
00139 Y = -Y;
00140 }
|
|
|
|
|
|
Definition at line 99 of file Vector2D.cpp. Referenced by MATH_PI().
00099 {
00100 double Mag = sqrt( (X * X) + (Y * Y) );
00101 X /= Mag;
00102 Y /= Mag;
00103 }
|
|
||||||||||||
|
|
|
||||||||||||
|
Definition at line 142 of file Vector2D.cpp. Referenced by MATH_PI().
00142 {
00143 X = x;
00144 Y = y;
00145 }
|
|
|
|
|
|
Definition at line 147 of file Vector2D.cpp. Referenced by MATH_PI().
00147 {
00148 X *= X;
00149 Y *= Y;
00150 }
|
|
|
|
|
|
Definition at line 105 of file Vector2D.cpp. Referenced by MATH_PI().
|
|
|
|
|
|
|
|
|
|
|
|
Referenced by Dot(), MATH_PI(), JArea::SetLowerRight(), JArea::SetOrg(), operator *(), operator *=(), operator+(), operator+=(), operator-(), operator-=(), operator/(), operator/=(), operator=(), and vecHalfBetween().
|
|
|
|
|
|
|
|
|
|
|
|
Referenced by Dot(), MATH_PI(), JArea::SetLowerRight(), JArea::SetOrg(), operator *(), operator *=(), operator+(), operator+=(), operator-(), operator-=(), operator/(), operator/=(), operator=(), and vecHalfBetween().
|
|
|
|
|
|
Definition at line 86 of file Vector2D.cpp. Referenced by MATH_PI().
00086 {
00087 if ( (X == 0.0) && (Y == 0.0) ) return TRUE;
00088 return FALSE;
00089 }
|
|
|
|
|
|
|
|
|
Definition at line 50 of file Vector2D.cpp. 00050 {
00051 X *= Factor;
00052 Y *= Factor;
00053 }
|
|
|
Definition at line 45 of file Vector2D.cpp. Referenced by MATH_PI().
|
|
|
|
|
|
Definition at line 82 of file Vector2D.cpp. 00082 {
00083 return !Compare( v );
00084 }
|
|
|
|
|
|
Definition at line 27 of file Vector2D.cpp. Referenced by MATH_PI().
|
|
|
|
|
|
Definition at line 36 of file Vector2D.cpp. Referenced by MATH_PI().
|
|
|
|
|
|
|
|
|
|
|
|
Definition at line 59 of file Vector2D.cpp. Referenced by MATH_PI().
|
|
|
|
|
|
Definition at line 15 of file Vector2D.cpp. Referenced by MATH_PI().
|
|
|
|
|
|
Definition at line 78 of file Vector2D.cpp. Referenced by MATH_PI().
00078 {
00079 return Compare( v );
00080 }
|
|
||||||||||||
|
Definition at line 91 of file Vector2D.cpp. |
|
||||||||||||
|
Definition at line 91 of file Vector2D.cpp. Referenced by MATH_PI().
|
|
||||||||||||
|
|
|
||||||||||||
|
Definition at line 41 of file Vector2D.cpp. |
|
||||||||||||
|
|
|
||||||||||||
|
Definition at line 41 of file Vector2D.cpp. Referenced by MATH_PI().
|
|
||||||||||||
|
Definition at line 23 of file Vector2D.cpp. |
|
||||||||||||
|
Definition at line 23 of file Vector2D.cpp. |
|
||||||||||||
|
Definition at line 32 of file Vector2D.cpp. |
|
||||||||||||
|
Definition at line 32 of file Vector2D.cpp. Referenced by MATH_PI().
|
|
||||||||||||
|
Definition at line 64 of file Vector2D.cpp. |
|
||||||||||||
|
Definition at line 55 of file Vector2D.cpp. |
|
||||||||||||
|
Definition at line 64 of file Vector2D.cpp. |
|
||||||||||||
|
Definition at line 55 of file Vector2D.cpp. Referenced by MATH_PI().
|
|
||||||||||||
|
Definition at line 115 of file Vector2D.cpp. |
|
||||||||||||
|
Definition at line 115 of file Vector2D.cpp. Referenced by MATH_PI().
|
|
|
Definition at line 55 of file Vector2D.hpp. |
|
|
Definition at line 56 of file Vector2D.hpp. |
1.2.11.1 written by Dimitri van Heesch,
© 1997-2001