#include <vector.h>
Public Methods | |
| VECTOR (float sx=0, float sy=0, float sz=0) | |
| VECTOR (const VECTOR &Vector) | |
| ~VECTOR () | |
| float | GetMagnitude () |
| void | Normalize () |
| void | Reset () |
| void | Set (float sx, float sy, float sz) |
| void | CrossVector (VECTOR vect) |
| float | DotProduct (VECTOR vect) |
| const bool | nearlyEquals (const VECTOR &v, const SCALAR e) const |
| const VECTOR | cross (const VECTOR &v) const |
| const SCALAR | dot (const VECTOR &v) const |
| const SCALAR | length () const |
| const VECTOR | unit () const |
| void | normalize () |
| SCALAR & | operator[] (const long i) |
| const bool | operator== (const VECTOR &v) const |
| const bool | operator!= (const VECTOR &v) const |
| const VECTOR | operator- () const |
| const VECTOR & | operator= (const VECTOR &v) |
| const VECTOR & | operator+= (const VECTOR &v) |
| const VECTOR & | operator-= (const VECTOR &v) |
| const VECTOR & | operator *= (const SCALAR &s) |
| const VECTOR & | operator/= (const SCALAR &s) |
| const VECTOR | operator+ (const VECTOR &v) const |
| const VECTOR | operator- (const VECTOR &v) const |
| const VECTOR | operator * (const SCALAR &s) const |
| const VECTOR | operator/ (SCALAR s) const |
Public Attributes | |
| float | x |
| float | y |
| float | z |
Friends | |
| const VECTOR | operator * (const SCALAR &s, const VECTOR &v) |
|
||||||||||||||||
|
Definition at line 6 of file vector.cpp. Referenced by cross(), operator *(), operator+(), operator-(), and operator/().
|
|
|
Definition at line 14 of file vector.cpp.
|
|
|
Definition at line 21 of file vector.cpp.
00022 {
00023 }
|
|
|
Definition at line 30 of file vector.h. References VECTOR(), x, y, and z.
|
|
|
Definition at line 39 of file vector.cpp. Referenced by QUAT::MultQuat().
|
|
|
Definition at line 37 of file vector.h. References SCALAR, x, y, and z. Referenced by DotProduct().
|
|
|
Definition at line 32 of file vector.cpp. References dot(), x, y, and z. Referenced by QUAT::MultQuat().
|
|
|
Definition at line 47 of file vector.cpp. Referenced by Normalize(), and SelectPolygon().
|
|
|
Definition at line 43 of file vector.h. References SCALAR. Referenced by normalize(), and unit().
00044 {
00045 return (SCALAR)sqrt( (double)this->dot(*this) );
00046 }
|
|
||||||||||||
|
Definition at line 24 of file vector.h. References SCALAR, x, y, and z.
|
|
|
Definition at line 55 of file vector.h. References length().
00056 {
00057 (*this) /= length();
00058 }
|
|
|
Definition at line 56 of file vector.cpp. References GetMagnitude(), x, y, and z.
00057 {
00058 float magnitude = this->GetMagnitude();
00059 x /= magnitude;
00060 y /= magnitude;
00061 z /= magnitude;
00062 }
|
|
|
Definition at line 149 of file vector.h. References SCALAR, VECTOR(), x, y, and z.
|
|
|
Definition at line 118 of file vector.h. References SCALAR, x, y, and z.
|
|
|
Definition at line 79 of file vector.h.
00080 {
00081 return !(v == *this);
00082 }
|
|
|
Definition at line 137 of file vector.h. References VECTOR(), x, y, and z.
|
|
|
Definition at line 100 of file vector.h.
|
|
|
Definition at line 143 of file vector.h. References VECTOR(), x, y, and z.
|
|
|
Definition at line 85 of file vector.h. References VECTOR(), x, y, and z.
|
|
|
Definition at line 109 of file vector.h.
|
|
|
Definition at line 161 of file vector.h. References SCALAR, VECTOR(), x, y, and z.
|
|
|
Definition at line 127 of file vector.h. References SCALAR, x, y, and z.
|
|
|
Definition at line 91 of file vector.h.
|
|
|
Definition at line 74 of file vector.h.
|
|
|
Definition at line 68 of file vector.h.
00069 {
00070 return *((&x) + i);
00071 }
|
|
|
Definition at line 25 of file vector.cpp. Referenced by OBJECT::Reset(), and CAMERA::Reset().
|
|
||||||||||||||||
|
Definition at line 19 of file vector.h. Referenced by LIGHT::Reset().
|
|
|
Definition at line 49 of file vector.h. References length().
00050 {
00051 return (*this) / length();
00052 }
|
|
||||||||||||
|
Definition at line 155 of file vector.h.
00156 {
00157 return v * s;
00158 }
|
|
|
|
1.2.15