#include <tgVector3.h>
Public Member Functions | |
tgVector3 | cross (tgVector3 v) |
float | dot (tgVector3 v) |
float | length () |
void | normalize () |
tgVector3 | operator* (tgVector3 v) |
tgVector3 | operator* (float m) |
tgVector3 | operator+ (tgVector3 v) |
tgVector3 | operator- (tgVector3 v) |
tgVector3 | operator/ (float m) |
tgVector3 | operator= (tgVector3 v) |
void | rotate (float fAngle, tgVector3 vAxis) |
void | rotateX (float fAngle) |
void | rotateY (float fAngle) |
void | rotateZ (float fAngle) |
void | setLength (float l) |
tgVector3 () | |
tgVector3 (float all) | |
tgVector3 (float x, float y, float z) | |
Static Public Member Functions | |
static tgVector3 | cross (tgVector3 v1, tgVector3 v2) |
Public Attributes | |
float | x |
float | y |
float | z |
Class tgVector3.
Definition at line 23 of file tgVector3.h.
Definition at line 15 of file tgVector3.cpp.
tgVector3::tgVector3 | ( | float | all | ) |
Definition at line 21 of file tgVector3.cpp.
tgVector3::tgVector3 | ( | float | x, |
float | y, | ||
float | z | ||
) |
Definition at line 28 of file tgVector3.cpp.
Definition at line 65 of file tgVector3.cpp.
tgVector3 tgVector3::cross | ( | tgVector3 | v1, |
tgVector3 | v2 | ||
) | [static] |
Definition at line 72 of file tgVector3.cpp.
float tgVector3::dot | ( | tgVector3 | v | ) |
Definition at line 79 of file tgVector3.cpp.
float tgVector3::length | ( | ) |
Definition at line 95 of file tgVector3.cpp.
void tgVector3::normalize | ( | ) |
Definition at line 84 of file tgVector3.cpp.
Definition at line 50 of file tgVector3.cpp.
tgVector3 tgVector3::operator* | ( | float | m | ) |
Definition at line 55 of file tgVector3.cpp.
Definition at line 40 of file tgVector3.cpp.
Definition at line 45 of file tgVector3.cpp.
tgVector3 tgVector3::operator/ | ( | float | m | ) |
Definition at line 60 of file tgVector3.cpp.
Definition at line 33 of file tgVector3.cpp.
void tgVector3::rotate | ( | float | fAngle, |
tgVector3 | vAxis | ||
) |
Definition at line 132 of file tgVector3.cpp.
void tgVector3::rotateX | ( | float | fAngle | ) |
Definition at line 108 of file tgVector3.cpp.
void tgVector3::rotateY | ( | float | fAngle | ) |
Definition at line 116 of file tgVector3.cpp.
void tgVector3::rotateZ | ( | float | fAngle | ) |
Definition at line 124 of file tgVector3.cpp.
void tgVector3::setLength | ( | float | l | ) |
Definition at line 100 of file tgVector3.cpp.
float TomGine::tgVector3::x |
Definition at line 26 of file tgVector3.h.
float TomGine::tgVector3::y |
Definition at line 26 of file tgVector3.h.
float TomGine::tgVector3::z |
Definition at line 26 of file tgVector3.h.