gui::vector2< T > Class Template Reference

#include <gui_vector2.hpp>

List of all members.

Public Member Functions

 vector2 ()
 vector2 (T mX, T mY)
void set (T mX, T mY)
get_norm () const
get_norm_squared () const
void normalize ()
vector2 get_unit () const
void rotate (const float &fAngle)
vector2 get_rotated (const float &fAngle) const
void scale (const vector2 &v)
vector2 get_scale (const vector2 &v) const
vector2 operator+ (const vector2 &v) const
void operator+= (const vector2 &v)
vector2 operator- () const
vector2 operator- (const vector2 &v) const
void operator-= (const vector2 &v)
bool operator== (const vector2 &v) const
bool operator!= (const vector2 &v) const
vector2 operator* (T mValue) const
void operator*= (T mValue)
vector2 operator/ (T mValue) const
void operator/= (T mValue)
operator* (const vector2 &v) const

Public Attributes

x
y

Static Public Attributes

static const vector2 ZERO
static const vector2 UNIT
static const vector2 X
static const vector2 Y

Detailed Description

template<class T>
class gui::vector2< T >

Definition at line 10 of file gui_vector2.hpp.


Constructor & Destructor Documentation

template<class T>
gui::vector2< T >::vector2 (  )  [inline]

Definition at line 14 of file gui_vector2.hpp.

template<class T>
gui::vector2< T >::vector2 ( mX,
mY 
) [inline]

Definition at line 18 of file gui_vector2.hpp.


Member Function Documentation

template<class T>
T gui::vector2< T >::get_norm (  )  const [inline]

Definition at line 27 of file gui_vector2.hpp.

template<class T>
T gui::vector2< T >::get_norm_squared (  )  const [inline]

Definition at line 32 of file gui_vector2.hpp.

template<class T>
vector2 gui::vector2< T >::get_rotated ( const float &  fAngle  )  const [inline]

Definition at line 63 of file gui_vector2.hpp.

template<class T>
vector2 gui::vector2< T >::get_scale ( const vector2< T > &  v  )  const [inline]

Definition at line 75 of file gui_vector2.hpp.

template<class T>
vector2 gui::vector2< T >::get_unit (  )  const [inline]

Definition at line 44 of file gui_vector2.hpp.

template<class T>
void gui::vector2< T >::normalize (  )  [inline]

Definition at line 37 of file gui_vector2.hpp.

template<class T>
bool gui::vector2< T >::operator!= ( const vector2< T > &  v  )  const [inline]

Definition at line 107 of file gui_vector2.hpp.

template<class T>
T gui::vector2< T >::operator* ( const vector2< T > &  v  )  const [inline]

Definition at line 132 of file gui_vector2.hpp.

template<class T>
vector2 gui::vector2< T >::operator* ( mValue  )  const [inline]

Definition at line 112 of file gui_vector2.hpp.

template<class T>
void gui::vector2< T >::operator*= ( mValue  )  [inline]

Definition at line 117 of file gui_vector2.hpp.

template<class T>
vector2 gui::vector2< T >::operator+ ( const vector2< T > &  v  )  const [inline]

Definition at line 80 of file gui_vector2.hpp.

template<class T>
void gui::vector2< T >::operator+= ( const vector2< T > &  v  )  [inline]

Definition at line 84 of file gui_vector2.hpp.

template<class T>
vector2 gui::vector2< T >::operator- ( const vector2< T > &  v  )  const [inline]

Definition at line 94 of file gui_vector2.hpp.

template<class T>
vector2 gui::vector2< T >::operator- (  )  const [inline]

Definition at line 89 of file gui_vector2.hpp.

template<class T>
void gui::vector2< T >::operator-= ( const vector2< T > &  v  )  [inline]

Definition at line 98 of file gui_vector2.hpp.

template<class T>
vector2 gui::vector2< T >::operator/ ( mValue  )  const [inline]

Definition at line 122 of file gui_vector2.hpp.

template<class T>
void gui::vector2< T >::operator/= ( mValue  )  [inline]

Definition at line 127 of file gui_vector2.hpp.

template<class T>
bool gui::vector2< T >::operator== ( const vector2< T > &  v  )  const [inline]

Definition at line 103 of file gui_vector2.hpp.

template<class T>
void gui::vector2< T >::rotate ( const float &  fAngle  )  [inline]

Definition at line 50 of file gui_vector2.hpp.

template<class T>
void gui::vector2< T >::scale ( const vector2< T > &  v  )  [inline]

Definition at line 69 of file gui_vector2.hpp.

template<class T>
void gui::vector2< T >::set ( mX,
mY 
) [inline]

Definition at line 22 of file gui_vector2.hpp.


Member Data Documentation

template<class T>
const vector2< T > gui::vector2< T >::UNIT [inline, static]

Definition at line 138 of file gui_vector2.hpp.

template<class T>
T gui::vector2< T >::x

Definition at line 142 of file gui_vector2.hpp.

template<class T>
const vector2< T > gui::vector2< T >::X [inline, static]

Definition at line 139 of file gui_vector2.hpp.

template<class T>
T gui::vector2< T >::y

Definition at line 142 of file gui_vector2.hpp.

template<class T>
const vector2< T > gui::vector2< T >::Y [inline, static]

Definition at line 140 of file gui_vector2.hpp.

template<class T>
const vector2< T > gui::vector2< T >::ZERO [inline, static]

Definition at line 137 of file gui_vector2.hpp.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Defines

Generated on Tue Jan 1 21:58:12 2013 for gui by  doxygen 1.6.1