Stellarium 0.12.0
Home · All Namespaces · All Classes · Functions · Coding Style · Scripting · Plugins · Renderer · File Structure

Vector2< T > Class Template Reference

A templatized 2d vector. More...

#include <VecMath.hpp>

List of all members.

Public Member Functions

 Vector2 (T, T)
Vector2operator= (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 * ()
void operator+= (const Vector2< T > &)
void operator-= (const Vector2< T > &)
void operator*= (T)
void 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
dot (const Vector2< T > &) const
length () const
lengthSquared () const
void normalize ()

Public Attributes

v [2]

Detailed Description

template<class T>
class Vector2< T >

A templatized 2d vector.

Use Vec2d or Vec2f typdef for vectors of double and float respectively.

Definition at line 71 of file VecMath.hpp.

The documentation for this class was generated from the following file:
Generated on Thu Jan 31 14:05:47 2013 for Stellarium by  doxygen 1.6.3