SDLPP::Vec2< T > Struct Template Reference
List of all members.
Public Types |
|
typedef Vec2< T > | self |
Public Member Functions |
|
| Vec2 (const Vec2 &v) |
|
| Vec2 (const T t) |
|
| Vec2 (const T _x=0, const T _y=0) |
|
| Vec2 (const T *t) |
|
const T & | operator[] (const int i) const |
|
T & | operator[] (const int i) |
|
self & | operator+= (const self &v) |
|
self & | operator-= (const self &v) |
|
self & | operator*= (const self &v) |
|
self & | operator*= (const T &s) |
|
self & | operator/= (const self &v) |
|
self & | operator/= (const T &s) |
|
const self & | operator+ () const |
|
self | operator- () const |
|
T | square_magnitude () const |
|
double | magnitude () const |
|
self | normalized () const |
|
self & | normalize () |
Static Public Member Functions |
|
static const self | Zero () |
Public Attributes |
|
T | x |
|
T | y |
template<class T>
struct SDLPP::Vec2< T >
The documentation for this struct was generated from the following file: