Stellarium 0.13.3
List of all members | Public Member Functions | Static Public Member Functions | Public Attributes
Matrix3< T > Class Template Reference

A templatized column-major 3x3 matrix compatible with openGL (mostly for NormalMatrix calculation). More...

#include <VecMath.hpp>

Public Member Functions

 Matrix3 (T, T, T, T, T, T, T, T, T)
 
 Matrix3 (const T *)
 
 Matrix3 (const Vector3< T > &, const Vector3< T > &, const Vector3< T > &)
 
Matrix3operator= (const T *)
 
void set (T, T, T, T, T, T, T, T, T)
 
T & operator[] (int)
 
 operator T * ()
 
 operator const T * () const
 
Matrix3 operator- (const Matrix3< T > &) const
 
Matrix3 operator+ (const Matrix3< T > &) const
 
Matrix3 operator* (const Matrix3< T > &) const
 
Vector3< T > operator* (const Vector3< T > &) const
 
Matrix3< T > transpose () const
 
Matrix3< T > inverse () const
 
void print (void) const
 

Static Public Member Functions

static Matrix3< T > identity ()
 

Public Attributes

r [9]
 

Detailed Description

template<class T>
class Matrix3< T >

A templatized column-major 3x3 matrix compatible with openGL (mostly for NormalMatrix calculation).

Use Mat3d or Mat3f typedef for matrices of doubles and floats respectively.

Definition at line 36 of file VecMath.hpp.


The documentation for this class was generated from the following file: