#include <Vector3D.hpp>
Public Methods | |
| JVector3D () | |
| JVector3D (const double x, const double y, const double z) | |
| JVector3D (const JVector3D &v) | |
| JVector3D & | operator= (const JVector3D &v) |
| BOOL | operator== (const JVector3D &v) const |
| BOOL | operator!= (const JVector3D &v) const |
| void | operator+= (const JVector3D &v) |
| void | operator+= (const double Factor) |
| void | operator-= (const JVector3D &v) |
| void | operator-= (const double Factor) |
| void | operator *= (const JVector3D &v) |
| void | operator *= (const double Factor) |
| void | operator/= (const JVector3D &v) |
| void | operator/= (const double Factor) |
| void | Abs () |
| void | AddScaled (const JVector3D &v, const double &Scale) |
| void | Adjust (const double X, const double Y, const double Z) |
| BOOL | bAtOrg () const |
| BOOL | bWithinLimits (const double Limit) const |
| double | Dot (const JVector3D &v) const |
| double | X () const |
| double | X (const double x) |
| double | Y () const |
| double | Y (const double y) |
| double | Z () const |
| double | Z (const double z) |
| double | Magnitude () const |
| double | MagSum () const |
| void | ClipToDegrees () |
| void | Cross (const JVector3D &v) |
| void | HalfBetween (const JVector3D &v) |
| void | Mix (const JVector3D &v) |
| void | Negate () |
| void | Normalize () |
| void | Set (const double x, const double y, const double z) |
| void | Square () |
| void | ToRadians () |
| JVector3D () | |
| JVector3D (const double x, const double y, const double z) | |
| JVector3D (const JVector3D &v) | |
| JVector3D & | operator= (const JVector3D &v) |
| BOOL | operator== (const JVector3D &v) const |
| BOOL | operator!= (const JVector3D &v) const |
| void | operator+= (const JVector3D &v) |
| void | operator+= (const double Factor) |
| void | operator-= (const JVector3D &v) |
| void | operator-= (const double Factor) |
| void | operator *= (const JVector3D &v) |
| void | operator *= (const double Factor) |
| void | operator/= (const JVector3D &v) |
| void | operator/= (const double Factor) |
| void | Abs () |
| void | AddScaled (const JVector3D &v, const double &Scale) |
| void | Adjust (const double X, const double Y, const double Z) |
| BOOL | bAtOrg () const |
| BOOL | bWithinLimits (const double Limit) const |
| double | Dot (const JVector3D &v) const |
| double | X () const |
| double | X (const double x) |
| double | Y () const |
| double | Y (const double y) |
| double | Z () const |
| double | Z (const double z) |
| double | Magnitude () const |
| double | MagSum () const |
| void | ClipToDegrees () |
| void | Cross (const JVector3D &v) |
| void | HalfBetween (const JVector3D &v) |
| void | Mix (const JVector3D &v) |
| void | Negate () |
| void | Normalize () |
| void | Set (const double x, const double y, const double z) |
| void | Square () |
| void | ToRadians () |
Private Attributes | |
| double | X |
| double | Y |
| double | Z |
Friends | |
| class | Matrix4by4 |
| JVector3D | operator+ (const JVector3D &left, const JVector3D &right) |
| JVector3D | operator+ (const JVector3D &left, const double Factor) |
| JVector3D | operator- (const JVector3D &left, const JVector3D &right) |
| JVector3D | operator- (const JVector3D &left, const double Factor) |
| JVector3D | operator * (const JVector3D &left, const JVector3D &right) |
| JVector3D | operator * (const JVector3D &left, const double Factor) |
| JVector3D | operator/ (const JVector3D &left, const JVector3D &right) |
| JVector3D | operator/ (const JVector3D &left, const double Factor) |
| JVector3D | vecCross (const JVector3D &left, const JVector3D &right) |
| JVector3D | vecMix (const JVector3D &left, const JVector3D &right) |
| JVector3D | vecHalfBetween (const JVector3D &left, const JVector3D &right) |
| JVector3D | operator+ (const JVector3D &left, const JVector3D &right) |
| JVector3D | operator+ (const JVector3D &left, const double Factor) |
| JVector3D | operator- (const JVector3D &left, const JVector3D &right) |
| JVector3D | operator- (const JVector3D &left, const double Factor) |
| JVector3D | operator * (const JVector3D &left, const JVector3D &right) |
| JVector3D | operator * (const JVector3D &left, const double Factor) |
| JVector3D | operator/ (const JVector3D &left, const JVector3D &right) |
| JVector3D | operator/ (const JVector3D &left, const double Factor) |
| JVector3D | vecCross (const JVector3D &left, const JVector3D &right) |
| JVector3D | vecMix (const JVector3D &left, const JVector3D &right) |
| JVector3D | vecHalfBetween (const JVector3D &left, const JVector3D &right) |
|
|
Definition at line 12 of file Vector3D.cpp. Referenced by MATH_PI().
|
|
||||||||||||||||
|
Definition at line 15 of file Vector3D.cpp. |
|
|
Definition at line 18 of file Vector3D.cpp. |
|
|
|
|
||||||||||||||||
|
|
|
|
|
|
|
|
|
|
Definition at line 118 of file Vector3D.cpp. Referenced by MATH_PI().
|
|
||||||||||||
|
|
|
||||||||||||
|
Referenced by MATH_PI().
|
|
||||||||||||||||
|
|
|
||||||||||||||||
|
Definition at line 214 of file Vector3D.cpp. Referenced by MATH_PI().
00215 {
00216 X += x;
00217 Y += y;
00218 Z += z;
00219 }
|
|
|
|
|
|
Definition at line 141 of file Vector3D.cpp. Referenced by MATH_PI().
00141 {
00142 if (X > 360.0)
00143 X = mod(X, 360.0);
00144
00145 if (Y > 360.0)
00146 Y = mod(Y, 360.0);
00147
00148 if (Z > 360.0)
00149 Z = mod(Z, 360.0);
00150 }
|
|
|
|
|
|
Definition at line 179 of file Vector3D.cpp. Referenced by MATH_PI().
|
|
|
|
|
|
Definition at line 133 of file Vector3D.cpp. Referenced by MATH_PI().
|
|
|
|
|
|
Definition at line 188 of file Vector3D.cpp. Referenced by MATH_PI().
|
|
|
|
|
|
Definition at line 247 of file Vector3D.cpp. Referenced by MATH_PI().
00247 {
00248 return (X + Y + Z);
00249 }
|
|
|
|
|
|
Definition at line 137 of file Vector3D.cpp. Referenced by MATH_PI(), and Normalize().
00137 {
00138 return sqrt( (X * X) + (Y * Y) + (Z * Z) );
00139 }
|
|
|
|
|
|
Definition at line 6 of file Vector3D.cpp. Referenced by MATH_PI().
|
|
|
|
|
|
Definition at line 251 of file Vector3D.cpp. Referenced by MATH_PI().
00251 {
00252 X *= -1;
00253 Y *= -1;
00254 Z *= -1;
00255 }
|
|
|
|
|
|
Definition at line 152 of file Vector3D.cpp. Referenced by MATH_PI().
00152 {
00153 double Mag = Magnitude();
00154
00155 if ( Mag != 0 ) {
00156 X /= Mag;
00157 Y /= Mag;
00158 Z /= Mag;
00159 }
00160 }
|
|
||||||||||||||||
|
|
|
||||||||||||||||
|
Definition at line 257 of file Vector3D.cpp. Referenced by MATH_PI().
00257 {
00258 X = x;
00259 Y = y;
00260 Z = z;
00261 }
|
|
|
|
|
|
Definition at line 263 of file Vector3D.cpp. Referenced by MATH_PI().
00263 {
00264 X *= X;
00265 Y *= Y;
00266 Z *= Z;
00267 }
|
|
|
|
|
|
Definition at line 162 of file Vector3D.cpp. Referenced by MATH_PI().
|
|
|
|
|
|
|
|
|
|
|
|
Referenced by Matrix4By4::AppendScale(), Matrix4By4::AppendTranslation(), Cross(), Dot(), HalfBetween(), MATH_PI(), operator *(), operator *=(), operator+(), operator+=(), operator-(), operator-=(), operator/(), operator/=(), operator=(), vecCross(), vecHalfBetween(), and vecMix().
|
|
|
|
|
|
|
|
|
|
|
|
Referenced by Matrix4By4::AppendScale(), Matrix4By4::AppendTranslation(), Cross(), Dot(), HalfBetween(), MATH_PI(), Mix(), operator *(), operator *=(), operator+(), operator+=(), operator-(), operator-=(), operator/(), operator/=(), operator=(), vecCross(), vecHalfBetween(), and vecMix().
|
|
|
|
|
|
|
|
|
|
|
|
Referenced by Matrix4By4::AppendScale(), Matrix4By4::AppendTranslation(), Cross(), Dot(), HalfBetween(), MATH_PI(), Mix(), operator *(), operator *=(), operator+(), operator+=(), operator-(), operator-=(), operator/(), operator/=(), operator=(), vecCross(), vecHalfBetween(), and vecMix().
|
|
|
|
|
|
Definition at line 124 of file Vector3D.cpp. Referenced by MATH_PI().
00124 {
00125 return ( (X == 0.0) && (Y == 0.0) && (Z == 0.0) );
00126 }
|
|
|
|
|
|
Definition at line 128 of file Vector3D.cpp. Referenced by MATH_PI().
|
|
|
|
|
|
|
|
|
Definition at line 105 of file Vector3D.cpp. |
|
|
Definition at line 81 of file Vector3D.cpp. Referenced by MATH_PI().
|
|
|
|
|
|
Definition at line 33 of file Vector3D.cpp. 00033 {
00034 return !Compare( v );
00035 }
|
|
|
|
|
|
|
|
|
Definition at line 93 of file Vector3D.cpp. |
|
|
Definition at line 69 of file Vector3D.cpp. Referenced by MATH_PI().
|
|
|
|
|
|
|
|
|
Definition at line 99 of file Vector3D.cpp. |
|
|
Definition at line 75 of file Vector3D.cpp. Referenced by MATH_PI().
|
|
|
|
|
|
|
|
|
Definition at line 111 of file Vector3D.cpp. |
|
|
Definition at line 87 of file Vector3D.cpp. Referenced by MATH_PI().
|
|
|
|
|
|
Definition at line 201 of file Vector3D.cpp. Referenced by MATH_PI().
|
|
|
|
|
|
Definition at line 29 of file Vector3D.cpp. Referenced by MATH_PI().
00029 {
00030 return Compare( v );
00031 }
|
|
|
Definition at line 71 of file Vector3D.hpp. |
|
||||||||||||
|
Definition at line 61 of file Vector3D.cpp. |
|
||||||||||||
|
Definition at line 45 of file Vector3D.cpp. |
|
||||||||||||
|
Definition at line 61 of file Vector3D.cpp. |
|
||||||||||||
|
Definition at line 45 of file Vector3D.cpp. Referenced by MATH_PI().
|
|
||||||||||||
|
Definition at line 53 of file Vector3D.cpp. |
|
||||||||||||
|
Definition at line 37 of file Vector3D.cpp. |
|
||||||||||||
|
Definition at line 53 of file Vector3D.cpp. |
|
||||||||||||
|
Definition at line 37 of file Vector3D.cpp. Referenced by MATH_PI().
|
|
||||||||||||
|
Definition at line 57 of file Vector3D.cpp. |
|
||||||||||||
|
Definition at line 41 of file Vector3D.cpp. |
|
||||||||||||
|
Definition at line 57 of file Vector3D.cpp. |
|
||||||||||||
|
Definition at line 41 of file Vector3D.cpp. Referenced by MATH_PI().
|
|
||||||||||||
|
Definition at line 65 of file Vector3D.cpp. |
|
||||||||||||
|
Definition at line 49 of file Vector3D.cpp. |
|
||||||||||||
|
Definition at line 65 of file Vector3D.cpp. |
|
||||||||||||
|
Definition at line 49 of file Vector3D.cpp. Referenced by MATH_PI().
|
|
||||||||||||
|
Definition at line 194 of file Vector3D.cpp. |
|
||||||||||||
|
Definition at line 194 of file Vector3D.cpp. Referenced by MATH_PI().
|
|
||||||||||||
|
Definition at line 269 of file Vector3D.cpp. |
|
||||||||||||
|
Definition at line 269 of file Vector3D.cpp. Referenced by MATH_PI().
|
|
||||||||||||
|
Definition at line 276 of file Vector3D.cpp. |
|
||||||||||||
|
Definition at line 276 of file Vector3D.cpp. Referenced by MATH_PI().
|
|
|
Definition at line 74 of file Vector3D.hpp. |
|
|
Definition at line 75 of file Vector3D.hpp. |
|
|
Definition at line 76 of file Vector3D.hpp. |
1.2.11.1 written by Dimitri van Heesch,
© 1997-2001