Stellarium 0.11.4 | |||
Home · All Namespaces · All Classes · Functions · Coding Style · Scripting · Plugins · File Structure |
A templatized 2d vector compatible with openGL. More...
#include <VecMath.hpp>
Public Member Functions | |
Vector2 (T, T) | |
Vector2 & | operator= (const T *) |
void | set (T, T) |
bool | operator== (const Vector2< T > &) const |
bool | operator!= (const Vector2< T > &) const |
const T & | operator[] (int x) const |
T & | operator[] (int) |
operator const T * () const | |
operator T * () | |
Vector2 & | operator+= (const Vector2< T > &) |
Vector2 & | operator-= (const Vector2< T > &) |
Vector2 & | operator*= (T) |
Vector2 & | operator/= (T) |
Vector2 | operator- (const Vector2< T > &) const |
Vector2 | operator+ (const Vector2< T > &) const |
Vector2 | operator- () const |
Vector2 | operator+ () const |
Vector2 | operator* (T) const |
Vector2 | operator/ (T) const |
T | dot (const Vector2< T > &) const |
T | length () const |
T | lengthSquared () const |
void | normalize () |
Public Attributes | |
T | v [2] |
A templatized 2d vector compatible with openGL.
Use Vec2d or Vec2f typdef for vectors of double and float respectively.