Public Member Functions

math::Matrix Class Reference

math::Matrix is osg::Matrix extended with a flat-index operator[]. More...

#include <_src_math_matrix_class.hh>

List of all members.

Public Member Functions

 Matrix (void)
 Matrix (const Matrix &src)
 Matrix (const osg::Matrix &src)
 Matrix (const Quaternion &quat, const Vector3 &v)
value_type & operator[] (uint i)
const value_type & operator[] (uint i) const
Vector3 GetPosition (void) const
void SetPosition (const Vector3 &pos)

Detailed Description

math::Matrix is osg::Matrix extended with a flat-index operator[].

operator[] provides compatibility (esp. with the matrix template functions). Deriving from osg::Matrix may not be what the OSG developers intended, but avoids massive rewriting.


Constructor & Destructor Documentation

math::Matrix::Matrix ( void   )  [inline]
math::Matrix::Matrix ( const Matrix src  )  [inline]
math::Matrix::Matrix ( const osg::Matrix &  src  )  [inline]
math::Matrix::Matrix ( const Quaternion quat,
const Vector3 v 
)

ctor. Quaternion only defines rotation (osg::Matrix(quat) produces zero position), so position must be assigned afterwards.


Member Function Documentation

Vector3 math::Matrix::GetPosition ( void   )  const [inline]
const value_type& math::Matrix::operator[] ( uint  i  )  const [inline]
value_type& math::Matrix::operator[] ( uint  i  )  [inline]
void math::Matrix::SetPosition ( const Vector3 pos  )  [inline]

The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Palomino Flight Simulator documents generated by doxygen 1.7.1 on Tue May 15 2012 22:40:12