g4tools
5.4.0
|
Public Member Functions | |
TOOLS_SCLASS (tools::vec2f) public | |
vec2f (const float a_vec[2]) | |
vec2f (float a0, float a1) | |
virtual | ~vec2f () |
vec2f (const vec2f &a_from) | |
vec2f & | operator= (const vec2f &a_from) |
vec2f (const parent &a_from) | |
vec2f | operator* (float a_v) const |
vec2f | operator+ (const vec2f &a_v) const |
vec2f | operator- (const vec2f &a_v) const |
vec2f & | operator+= (const vec2f &a_v) |
vec2f & | operator*= (float a_v) |
vec2f | operator- () const |
float | length () const |
float | normalize () |
bool | equals (const vec2f &a_v, const float a_epsil) const |
void | negate () |
Public Member Functions inherited from tools::vec2< float > | |
unsigned int | dimension () const |
vec2 () | |
vec2 (const float a_vec[2]) | |
vec2 (const float &a0, const float &a1) | |
vec2 (const vec2 &a_from) | |
virtual | ~vec2 () |
vec2 & | operator= (const vec2 &a_from) |
const float & | v0 () const |
void | v0 (const float &a_value) |
const float & | v1 () const |
void | v1 (const float &a_value) |
const float & | x () const |
float & | x () |
const float & | y () const |
float & | y () |
void | set_value (const float &a0, const float &a1) |
void | set_value (const float aV[2]) |
void | value (float &a0, float &a1) const |
float | length (float(*a_sqrt)(float)) const |
float | normalize (float(*a_sqrt)(float)) |
float | dot (const vec2 &aV) const |
float | cross (const vec2 &aV) const |
bool | equal (const vec2 &aV) const |
bool | divide (const float &a_T) |
void | add (const vec2 &a_v) |
void | add (const float &a0, const float &a1) |
void | subtract (const vec2 &a_v) |
void | subtract (const float &a0, const float &a1) |
float & | operator[] (size_t a_index) |
const float & | operator[] (size_t a_index) const |
vec2 | operator+ (const vec2 &a_v) const |
vec2 | operator- (const vec2 &a_v) const |
vec2 | operator* (const float &a_v) const |
bool | operator== (const vec2 &a_v) const |
bool | operator!= (const vec2 &a_v) const |
size_type | size () const |
const float * | data () const |
const float * | getValue () const |
void | getValue (float &a0, float &a1) const |
void | setValue (const float &a0, const float &a1) |
void | setValue (const float aV[2]) |
Additional Inherited Members | |
Public Types inherited from tools::vec2< float > | |
typedef float | elem_t |
typedef unsigned int | size_type |
Protected Attributes inherited from tools::vec2< float > | |
float | m_data [2] |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |