#include <tgMathlib.h>
Public Member Functions | |
void | absolute () |
void | cross (const vec3 &v1, const vec3 &v2) |
float | length () const |
float | normalize () |
operator const float * () const | |
operator float * () | |
int | operator!= (const vec3 &v) |
const vec3 | operator* (float f) const |
float | operator* (const vec3 &v) const |
float | operator* (const vec4 &v) const |
vec3 & | operator*= (float f) |
const vec3 | operator+ (const vec3 &v) const |
vec3 & | operator+= (const vec3 &v) |
const vec3 | operator- () const |
const vec3 | operator- (const vec3 &v) const |
vec3 & | operator-= (const vec3 &v) |
const vec3 | operator/ (float f) const |
vec3 & | operator/= (float f) |
int | operator== (const vec3 &v) |
float & | operator[] (int i) |
float | operator[] (int i) const |
const vec3 | operator^ (const vec3 &v) const |
void | random () |
vec3 () | |
vec3 (float x, float y, float z) | |
vec3 (const float *v) | |
vec3 (const vec3 &v) | |
vec3 (const vec4 &v) | |
Public Attributes | |
union { | |
struct { | |
float x | |
float y | |
float z | |
} | |
float v [3] | |
}; |
Definition at line 119 of file tgMathlib.h.
vec3::vec3 | ( | ) | [inline] |
Definition at line 121 of file tgMathlib.h.
vec3::vec3 | ( | float | x, |
float | y, | ||
float | z | ||
) | [inline] |
Definition at line 122 of file tgMathlib.h.
vec3::vec3 | ( | const float * | v | ) | [inline] |
Definition at line 123 of file tgMathlib.h.
vec3::vec3 | ( | const vec3 & | v | ) | [inline] |
Definition at line 124 of file tgMathlib.h.
vec3::vec3 | ( | const vec4 & | v | ) | [inline] |
Definition at line 282 of file tgMathlib.h.
void vec3::absolute | ( | ) | [inline] |
Definition at line 172 of file tgMathlib.h.
void vec3::cross | ( | const vec3 & | v1, |
const vec3 & | v2 | ||
) | [inline] |
Definition at line 167 of file tgMathlib.h.
float vec3::length | ( | ) | const [inline] |
Definition at line 156 of file tgMathlib.h.
float vec3::normalize | ( | ) | [inline] |
Definition at line 157 of file tgMathlib.h.
vec3::operator const float * | ( | ) | const [inline] |
Definition at line 151 of file tgMathlib.h.
vec3::operator float * | ( | ) | [inline] |
Definition at line 150 of file tgMathlib.h.
int vec3::operator!= | ( | const vec3 & | v | ) | [inline] |
Definition at line 132 of file tgMathlib.h.
const vec3 vec3::operator* | ( | float | f | ) | const [inline] |
Definition at line 134 of file tgMathlib.h.
float vec3::operator* | ( | const vec3 & | v | ) | const [inline] |
Definition at line 147 of file tgMathlib.h.
float vec3::operator* | ( | const vec4 & | v | ) | const [inline] |
Definition at line 288 of file tgMathlib.h.
vec3& vec3::operator*= | ( | float | f | ) | [inline] |
Definition at line 142 of file tgMathlib.h.
Definition at line 136 of file tgMathlib.h.
Definition at line 144 of file tgMathlib.h.
const vec3 vec3::operator- | ( | ) | const [inline] |
Definition at line 137 of file tgMathlib.h.
Definition at line 138 of file tgMathlib.h.
Definition at line 145 of file tgMathlib.h.
const vec3 vec3::operator/ | ( | float | f | ) | const [inline] |
Definition at line 135 of file tgMathlib.h.
vec3& vec3::operator/= | ( | float | f | ) | [inline] |
Definition at line 143 of file tgMathlib.h.
int vec3::operator== | ( | const vec3 & | v | ) | [inline] |
Definition at line 131 of file tgMathlib.h.
float& vec3::operator[] | ( | int | i | ) | [inline] |
Definition at line 153 of file tgMathlib.h.
float vec3::operator[] | ( | int | i | ) | const [inline] |
Definition at line 154 of file tgMathlib.h.
Definition at line 139 of file tgMathlib.h.
void vec3::random | ( | ) | [inline] |
Definition at line 127 of file tgMathlib.h.
union { ... } |
float vec3::v[3] |
Definition at line 182 of file tgMathlib.h.
float vec3::x |
Definition at line 180 of file tgMathlib.h.
float vec3::y |
Definition at line 180 of file tgMathlib.h.
float vec3::z |
Definition at line 180 of file tgMathlib.h.