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

Matrix4< T > Class Template Reference

A templatized column-major 4x4 matrix compatible with openGL. More...

#include <VecMath.hpp>

List of all members.

Public Member Functions

 Matrix4 (const Matrix4< T > &m)
 Matrix4 (T, T, T, T, T, T, T, T, T, T, T, T, T, T, T, T)
 Matrix4 (const T *)
 Matrix4 (const Vector4< T > &, const Vector4< T > &, const Vector4< T > &, const Vector4< T > &)
Matrix4operator= (const Matrix4< T > &)
Matrix4operator= (const T *)
void set (T, T, T, T, T, T, T, T, T, T, T, T, T, T, T, T)
T & operator[] (int)
 operator T * ()
 operator const T * () const
Matrix4 operator- (const Matrix4< T > &) const
Matrix4 operator+ (const Matrix4< T > &) const
Matrix4 operator* (const Matrix4< T > &) const
Vector3< T > operator* (const Vector3< T > &) const
Vector3< T > multiplyWithoutTranslation (const Vector3< T > &a) const
Vector4< T > operator* (const Vector4< T > &) const
void transfo (Vector3< T > &) const
Matrix4< T > transpose () const
Matrix4< T > inverse () const
void print (void) const

Static Public Member Functions

static Matrix4< T > identity ()
static Matrix4< T > translation (const Vector3< T > &)
static Matrix4< T > rotation (const Vector3< T > &, T)
static Matrix4< T > xrotation (T)
static Matrix4< T > yrotation (T)
static Matrix4< T > zrotation (T)
static Matrix4< T > scaling (const Vector3< T > &)
static Matrix4< T > scaling (T)

Public Attributes

r [16]


Detailed Description

template<class T>
class Matrix4< T >

A templatized column-major 4x4 matrix compatible with openGL.

Use Mat4d or Mat4f typdef for matrices of doubles and floats respectively.


Generated on Mon Mar 22 09:55:38 2010 for Stellarium by  doxygen 1.5.5