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