#include <tgMathlib.h>
Public Member Functions | |
void | absolute () |
float | length () const |
float | normalize () |
operator const float * () const | |
operator float * () | |
int | operator!= (const vec2 &v) |
const vec2 | operator* (float f) const |
float | operator* (const vec2 &v) const |
vec2 & | operator*= (float f) |
const vec2 | operator+ (const vec2 &v) const |
vec2 & | operator+= (const vec2 &v) |
const vec2 | operator- () const |
const vec2 | operator- (const vec2 &v) const |
vec2 & | operator-= (const vec2 &v) |
const vec2 | operator/ (float f) const |
vec2 & | operator/= (float f) |
int | operator== (const vec2 &v) |
float & | operator[] (int i) |
float | operator[] (int i) const |
vec2 () | |
vec2 (float x, float y) | |
vec2 (const float *v) | |
vec2 (const vec2 &v) | |
Public Attributes | |
union { | |
struct { | |
float x | |
float y | |
} | |
float v [2] | |
}; |
Definition at line 62 of file tgMathlib.h.
vec2::vec2 | ( | ) | [inline] |
Definition at line 64 of file tgMathlib.h.
vec2::vec2 | ( | float | x, |
float | y | ||
) | [inline] |
Definition at line 65 of file tgMathlib.h.
vec2::vec2 | ( | const float * | v | ) | [inline] |
Definition at line 66 of file tgMathlib.h.
vec2::vec2 | ( | const vec2 & | v | ) | [inline] |
Definition at line 67 of file tgMathlib.h.
void vec2::absolute | ( | ) | [inline] |
Definition at line 100 of file tgMathlib.h.
float vec2::length | ( | ) | const [inline] |
Definition at line 91 of file tgMathlib.h.
float vec2::normalize | ( | ) | [inline] |
Definition at line 92 of file tgMathlib.h.
vec2::operator const float * | ( | ) | const [inline] |
Definition at line 86 of file tgMathlib.h.
vec2::operator float * | ( | ) | [inline] |
Definition at line 85 of file tgMathlib.h.
int vec2::operator!= | ( | const vec2 & | v | ) | [inline] |
Definition at line 70 of file tgMathlib.h.
const vec2 vec2::operator* | ( | float | f | ) | const [inline] |
Definition at line 72 of file tgMathlib.h.
float vec2::operator* | ( | const vec2 & | v | ) | const [inline] |
Definition at line 83 of file tgMathlib.h.
vec2& vec2::operator*= | ( | float | f | ) | [inline] |
Definition at line 78 of file tgMathlib.h.
Definition at line 74 of file tgMathlib.h.
Definition at line 80 of file tgMathlib.h.
const vec2 vec2::operator- | ( | ) | const [inline] |
Definition at line 75 of file tgMathlib.h.
Definition at line 76 of file tgMathlib.h.
Definition at line 81 of file tgMathlib.h.
const vec2 vec2::operator/ | ( | float | f | ) | const [inline] |
Definition at line 73 of file tgMathlib.h.
vec2& vec2::operator/= | ( | float | f | ) | [inline] |
Definition at line 79 of file tgMathlib.h.
int vec2::operator== | ( | const vec2 & | v | ) | [inline] |
Definition at line 69 of file tgMathlib.h.
float& vec2::operator[] | ( | int | i | ) | [inline] |
Definition at line 88 of file tgMathlib.h.
float vec2::operator[] | ( | int | i | ) | const [inline] |
Definition at line 89 of file tgMathlib.h.
union { ... } |
float vec2::v[2] |
Definition at line 109 of file tgMathlib.h.
float vec2::x |
Definition at line 107 of file tgMathlib.h.
float vec2::y |
Definition at line 107 of file tgMathlib.h.