#include <Vector.h>
Public Member Functions | |
VECTOR (GLfloat sx=0, GLfloat sy=0, GLfloat sz=0) | |
~VECTOR () | |
GLfloat | GetMagnitude () |
GLvoid | Normalize () |
GLvoid | Reset () |
GLvoid | Set (GLfloat sx, GLfloat sy, GLfloat sz) |
GLvoid | CrossVector (VECTOR vect) |
GLfloat | 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 | |
GLfloat | x |
GLfloat | y |
GLfloat | z |
Friends | |
const VECTOR | operator * (const SCALAR &s, const VECTOR &v) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|