VECTOR3D Class Reference
#include <VECTOR3D.h>
List of all members.
|
Public Member Functions |
| | VECTOR3D (void) |
| | VECTOR3D (float newX, float newY, float newZ) |
| | VECTOR3D (const float *rhs) |
| | VECTOR3D (const VECTOR3D &rhs) |
| | ~VECTOR3D () |
| void | Set (float newX, float newY, float newZ) |
| void | SetX (float newX) |
| void | SetY (float newY) |
| void | SetZ (float newZ) |
| float | GetX () const |
| float | GetY () const |
| float | GetZ () const |
| void | LoadZero (void) |
| void | LoadOne (void) |
| VECTOR3D | CrossProduct (const VECTOR3D &rhs) const |
| float | DotProduct (const VECTOR3D &rhs) const |
| void | Normalize () |
| VECTOR3D | GetNormalized () const |
| float | GetLength () const |
| float | GetSquaredLength () const |
| void | RotateX (double angle) |
| VECTOR3D | GetRotatedX (double angle) const |
| void | RotateY (double angle) |
| VECTOR3D | GetRotatedY (double angle) const |
| void | RotateZ (double angle) |
| VECTOR3D | GetRotatedZ (double angle) const |
| void | RotateAxis (double angle, const VECTOR3D &axis) |
| VECTOR3D | GetRotatedAxis (double angle, const VECTOR3D &axis) const |
| void | PackTo01 () |
| VECTOR3D | GetPackedTo01 () const |
| VECTOR3D | lerp (const VECTOR3D &v2, float factor) const |
| VECTOR3D | QuadraticInterpolate (const VECTOR3D &v2, const VECTOR3D &v3, float factor) const |
| VECTOR3D | operator+ (const VECTOR3D &rhs) const |
| VECTOR3D | operator- (const VECTOR3D &rhs) const |
| VECTOR3D | operator* (const float rhs) const |
| VECTOR3D | operator/ (const float rhs) const |
| void | Add (const VECTOR3D &v2, VECTOR3D &result) |
| void | Subtract (const VECTOR3D &v2, VECTOR3D &result) |
| bool | operator== (const VECTOR3D &rhs) const |
| bool | operator!= (const VECTOR3D &rhs) const |
| void | operator+= (const VECTOR3D &rhs) |
| void | operator-= (const VECTOR3D &rhs) |
| void | operator*= (const float rhs) |
| void | operator/= (const float rhs) |
| VECTOR3D | operator- (void) const |
| VECTOR3D | operator+ (void) const |
| | operator float * () const |
| | operator const float * () const |
Public Attributes |
| float | x |
| float | y |
| float | z |
Friends |
| VECTOR3D | operator* (float scaleFactor, const VECTOR3D &rhs) |
Constructor & Destructor Documentation
| VECTOR3D::VECTOR3D |
( |
void |
|
) |
[inline] |
| VECTOR3D::VECTOR3D |
( |
float |
newX, |
|
|
float |
newY, |
|
|
float |
newZ | |
|
) |
| | [inline] |
| VECTOR3D::VECTOR3D |
( |
const float * |
rhs |
) |
[inline] |
| VECTOR3D::VECTOR3D |
( |
const VECTOR3D & |
rhs |
) |
[inline] |
| VECTOR3D::~VECTOR3D |
( |
|
) |
[inline] |
Member Function Documentation
| void VECTOR3D::Set |
( |
float |
newX, |
|
|
float |
newY, |
|
|
float |
newZ | |
|
) |
| | [inline] |
| void VECTOR3D::SetX |
( |
float |
newX |
) |
[inline] |
| void VECTOR3D::SetY |
( |
float |
newY |
) |
[inline] |
| void VECTOR3D::SetZ |
( |
float |
newZ |
) |
[inline] |
| float VECTOR3D::GetX |
( |
|
) |
const [inline] |
| float VECTOR3D::GetY |
( |
|
) |
const [inline] |
| float VECTOR3D::GetZ |
( |
|
) |
const [inline] |
| void VECTOR3D::LoadZero |
( |
void |
|
) |
[inline] |
| void VECTOR3D::LoadOne |
( |
void |
|
) |
[inline] |
| float VECTOR3D::DotProduct |
( |
const VECTOR3D & |
rhs |
) |
const [inline] |
| void VECTOR3D::Normalize |
( |
void |
|
) |
|
| VECTOR3D VECTOR3D::GetNormalized |
( |
|
) |
const |
| float VECTOR3D::GetLength |
( |
|
) |
const [inline] |
| float VECTOR3D::GetSquaredLength |
( |
|
) |
const [inline] |
| void VECTOR3D::RotateX |
( |
double |
angle |
) |
|
| VECTOR3D VECTOR3D::GetRotatedX |
( |
double |
angle |
) |
const |
| void VECTOR3D::RotateY |
( |
double |
angle |
) |
|
| VECTOR3D VECTOR3D::GetRotatedY |
( |
double |
angle |
) |
const |
| void VECTOR3D::RotateZ |
( |
double |
angle |
) |
|
| VECTOR3D VECTOR3D::GetRotatedZ |
( |
double |
angle |
) |
const |
| void VECTOR3D::RotateAxis |
( |
double |
angle, |
|
|
const VECTOR3D & |
axis | |
|
) |
| | |
| void VECTOR3D::PackTo01 |
( |
|
) |
|
| VECTOR3D VECTOR3D::GetPackedTo01 |
( |
|
) |
const |
| VECTOR3D VECTOR3D::operator* |
( |
const float |
rhs |
) |
const [inline] |
| VECTOR3D VECTOR3D::operator/ |
( |
const float |
rhs |
) |
const [inline] |
| bool VECTOR3D::operator== |
( |
const VECTOR3D & |
rhs |
) |
const |
| bool VECTOR3D::operator!= |
( |
const VECTOR3D & |
rhs |
) |
const [inline] |
| void VECTOR3D::operator+= |
( |
const VECTOR3D & |
rhs |
) |
[inline] |
| void VECTOR3D::operator-= |
( |
const VECTOR3D & |
rhs |
) |
[inline] |
| void VECTOR3D::operator*= |
( |
const float |
rhs |
) |
[inline] |
| void VECTOR3D::operator/= |
( |
const float |
rhs |
) |
[inline] |
| VECTOR3D VECTOR3D::operator- |
( |
void |
|
) |
const [inline] |
| VECTOR3D VECTOR3D::operator+ |
( |
void |
|
) |
const [inline] |
| VECTOR3D::operator float * |
( |
|
) |
const [inline] |
| VECTOR3D::operator const float * |
( |
|
) |
const [inline] |
Friends And Related Function Documentation
Member Data Documentation
The documentation for this class was generated from the following files:
- /Users/ccliffe/Dev/cubicvr/cubicvr/include/CubicVR/math/VECTOR3D.h
- /Users/ccliffe/Dev/cubicvr/cubicvr/src/math/VECTOR3D.cpp