Stellarium 0.11.4 | |||
Home · All Namespaces · All Classes · Functions · Coding Style · Scripting · Plugins · File Structure |
A templatized 3d vector compatible with openGL. More...
#include <VecMath.hpp>
Public Member Functions | |
Vector3 (T, T, T) | |
Vector3 (T) | |
Vector3 & | operator= (const T *) |
void | set (T, T, T) |
bool | operator== (const Vector3< T > &) const |
bool | operator!= (const Vector3< T > &) const |
T & | operator[] (int) |
const T & | operator[] (int) const |
operator const T * () const | |
operator T * () | |
const T * | data () const |
T * | data () |
Vector3 & | operator+= (const Vector3< T > &) |
Vector3 & | operator-= (const Vector3< T > &) |
Vector3 & | operator*= (T) |
Vector3 & | operator/= (T) |
Vector3 | operator- (const Vector3< T > &) const |
Vector3 | operator+ (const Vector3< T > &) const |
Vector3 | operator- () const |
Vector3 | operator+ () const |
Vector3 | operator* (T) const |
Vector3 | operator/ (T) const |
T | dot (const Vector3< T > &) const |
Vector3 | operator^ (const Vector3< T > &) const |
T | latitude () const |
T | longitude () const |
T | angle (const Vector3< T > &) const |
T | angleNormalized (const Vector3< T > &) const |
T | length () const |
T | lengthSquared () const |
void | normalize () |
void | transfo4d (const Mat4d &) |
void | transfo4d (const Mat4f &) |
QString | toString () const |
QString | toStringLonLat () const |
Public Attributes | |
T | v [3] |
A templatized 3d vector compatible with openGL.
Use Vec3d or Vec3f typdef for vectors of double and float respectively.