$search
#include <tgMathlib.h>
Public Member Functions | |
void | absolute () |
float | length () const |
float | normalize () |
operator const float * () const | |
operator float * () | |
int | operator!= (const vec2 &v) |
float | operator* (const vec2 &v) const |
const vec2 | operator* (float f) const |
vec2 & | operator*= (float f) |
const vec2 | operator+ (const vec2 &v) const |
vec2 & | operator+= (const vec2 &v) |
const vec2 | operator- (const vec2 &v) const |
const vec2 | operator- () 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) const |
float & | operator[] (int i) |
vec2 (const vec2 &v) | |
vec2 (const float *v) | |
vec2 (float x, float y) | |
vec2 () | |
Public Attributes | |
union { | |
struct { | |
float x | |
float y | |
} | |
float v [2] | |
}; |
Definition at line 61 of file tgMathlib.h.
vec2::vec2 | ( | ) | [inline] |
Definition at line 63 of file tgMathlib.h.
vec2::vec2 | ( | float | x, | |
float | y | |||
) | [inline] |
Definition at line 64 of file tgMathlib.h.
vec2::vec2 | ( | const float * | v | ) | [inline] |
Definition at line 65 of file tgMathlib.h.
vec2::vec2 | ( | const vec2 & | v | ) | [inline] |
Definition at line 66 of file tgMathlib.h.
void vec2::absolute | ( | ) | [inline] |
Definition at line 99 of file tgMathlib.h.
float vec2::length | ( | ) | const [inline] |
Definition at line 90 of file tgMathlib.h.
float vec2::normalize | ( | ) | [inline] |
Definition at line 91 of file tgMathlib.h.
vec2::operator const float * | ( | ) | const [inline] |
Definition at line 85 of file tgMathlib.h.
vec2::operator float * | ( | ) | [inline] |
Definition at line 84 of file tgMathlib.h.
int vec2::operator!= | ( | const vec2 & | v | ) | [inline] |
Definition at line 69 of file tgMathlib.h.
float vec2::operator* | ( | const vec2 & | v | ) | const [inline] |
Definition at line 82 of file tgMathlib.h.
const vec2 vec2::operator* | ( | float | f | ) | const [inline] |
Definition at line 71 of file tgMathlib.h.
vec2& vec2::operator*= | ( | float | f | ) | [inline] |
Definition at line 77 of file tgMathlib.h.
Definition at line 73 of file tgMathlib.h.
Definition at line 79 of file tgMathlib.h.
Definition at line 75 of file tgMathlib.h.
const vec2 vec2::operator- | ( | void | ) | const [inline] |
Definition at line 74 of file tgMathlib.h.
Definition at line 80 of file tgMathlib.h.
const vec2 vec2::operator/ | ( | float | f | ) | const [inline] |
Definition at line 72 of file tgMathlib.h.
vec2& vec2::operator/= | ( | float | f | ) | [inline] |
Definition at line 78 of file tgMathlib.h.
int vec2::operator== | ( | const vec2 & | v | ) | [inline] |
Definition at line 68 of file tgMathlib.h.
float vec2::operator[] | ( | int | i | ) | const [inline] |
Definition at line 88 of file tgMathlib.h.
float& vec2::operator[] | ( | int | i | ) | [inline] |
Definition at line 87 of file tgMathlib.h.
union { ... } |
float vec2::v[2] |
Definition at line 108 of file tgMathlib.h.
float vec2::x |
Definition at line 106 of file tgMathlib.h.
float vec2::y |
Definition at line 106 of file tgMathlib.h.