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

Vector4< T > Class Template Reference

A templatized 4d vector. More...

#include <VecMath.hpp>

List of all members.

Public Member Functions

 Vector4 (const Vector3< T > &)
 Vector4 (T, T, T)
 Vector4 (T, T, T, T)
Vector4operator= (const Vector3< T > &)
Vector4operator= (const T *)
void set (T, T, T, T)
bool operator== (const Vector4< T > &) const
bool operator!= (const Vector4< T > &) const
T & operator[] (int)
const T & operator[] (int) const
 operator T * ()
 operator const T * () const
void operator+= (const Vector4< T > &)
void operator-= (const Vector4< T > &)
void operator*= (T)
void operator/= (T)
Vector4 operator- (const Vector4< T > &) const
Vector4 operator+ (const Vector4< T > &) const
Vector4 operator- () const
Vector4 operator+ () const
Vector4 operator* (T) const
Vector4 operator/ (T) const
dot (const Vector4< T > &) const
length () const
lengthSquared () const
void normalize ()
void transfo4d (const Mat4d &)

Public Attributes

v [4]

Detailed Description

template<class T>
class Vector4< T >

A templatized 4d vector.

Use Vec4d or Vec4f typdef for vectors of double and float respectively.

Definition at line 183 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