All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Defines
Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes
vrml::Matrix4x4 Class Reference

a 4x4 matrix used to represent the OpenGL rotation/translation Matrix stack More...

#include <matrix4x4.h>

List of all members.

Public Member Functions

void makeDiag (double d=1.0)
void makeDiag (double d=1.0)
 Matrix4x4 ()
 Matrix4x4 ()
 Matrix4x4 (const Matrix4x4 &other)
 Matrix4x4 (const Matrix4x4 &other)
 Matrix4x4 (const double *data)
 Matrix4x4 (const double *data)
Matrix4x4 operator* (const Matrix4x4 &other) const
 matrix multiplication
Matrix4x4 operator* (const Matrix4x4 &other) const
 matrix multiplication
Vector4 operator* (const Vector4 &vec) const
 calculate matrix * vec
Vector4 operator* (const Vector4 &vec) const
 calculate matrix * vec
Matrix4x4operator= (const Matrix4x4 &other)
Matrix4x4operator= (const Matrix4x4 &other)
double * operator[] (unsigned int m) throw (std::runtime_error)
double * operator[] (unsigned int m) throw (std::runtime_error)
const double * operator[] (unsigned int m) const throw (std::runtime_error)
const double * operator[] (unsigned int m) const throw (std::runtime_error)
 ~Matrix4x4 ()
 ~Matrix4x4 ()

Static Public Member Functions

static Matrix4x4 identity ()
static Matrix4x4 identity ()
static Matrix4x4 rotate (double phi, double u, double v, double w)
static Matrix4x4 rotate (double phi, double u, double v, double w)
static Matrix4x4 scale (double sx, double sy, double sz)
static Matrix4x4 scale (double sx, double sy, double sz)
static Matrix4x4 translate (double dx, double dy, double dz)
static Matrix4x4 translate (double dx, double dy, double dz)

Protected Member Functions

void copy (const Matrix4x4 &other)
 copy method for a deep copy of the data
void copy (const Matrix4x4 &other)
 copy method for a deep copy of the data

Protected Attributes

double _data [16]
 array representing the matrix elems

Detailed Description

a 4x4 matrix used to represent the OpenGL rotation/translation Matrix stack

Definition at line 32 of file include/hogman_minimal/graph_viewer/matrix4x4.h.


Constructor & Destructor Documentation

Definition at line 29 of file matrix4x4.cpp.

Definition at line 34 of file matrix4x4.cpp.

Definition at line 38 of file matrix4x4.cpp.

vrml::Matrix4x4::Matrix4x4 ( const double *  data) [explicit]

Definition at line 118 of file matrix4x4.cpp.

vrml::Matrix4x4::Matrix4x4 ( const double *  data) [explicit]

Member Function Documentation

void vrml::Matrix4x4::copy ( const Matrix4x4 other) [protected]

copy method for a deep copy of the data

Definition at line 43 of file matrix4x4.cpp.

void vrml::Matrix4x4::copy ( const Matrix4x4 other) [protected]

copy method for a deep copy of the data

return the identity matrix

Definition at line 134 of file matrix4x4.cpp.

static Matrix4x4 vrml::Matrix4x4::identity ( ) [static]

return the identity matrix

void vrml::Matrix4x4::makeDiag ( double  d = 1.0)

make a diagonal matrix

Parameters:
dthe value for the diagonal elems

Definition at line 48 of file matrix4x4.cpp.

void vrml::Matrix4x4::makeDiag ( double  d = 1.0)

make a diagonal matrix

Parameters:
dthe value for the diagonal elems
Matrix4x4 vrml::Matrix4x4::operator* ( const Matrix4x4 other) const

matrix multiplication

Matrix4x4 vrml::Matrix4x4::operator* ( const Matrix4x4 other) const

matrix multiplication

Definition at line 63 of file matrix4x4.cpp.

Vector4 vrml::Matrix4x4::operator* ( const Vector4 vec) const

calculate matrix * vec

Vector4 vrml::Matrix4x4::operator* ( const Vector4 vec) const

calculate matrix * vec

Definition at line 123 of file matrix4x4.cpp.

Matrix4x4 & vrml::Matrix4x4::operator= ( const Matrix4x4 other)

Definition at line 55 of file matrix4x4.cpp.

Matrix4x4& vrml::Matrix4x4::operator= ( const Matrix4x4 other)
double* vrml::Matrix4x4::operator[] ( unsigned int  m) throw (std::runtime_error) [inline]

index operator, to access the m-th row

Definition at line 50 of file include/hogman_minimal/graph_viewer/matrix4x4.h.

double* vrml::Matrix4x4::operator[] ( unsigned int  m) throw (std::runtime_error) [inline]

index operator, to access the m-th row

Definition at line 50 of file src/graph_viewer/matrix4x4.h.

const double* vrml::Matrix4x4::operator[] ( unsigned int  m) const throw (std::runtime_error) [inline]

index operator, to access the m-th row

Definition at line 60 of file src/graph_viewer/matrix4x4.h.

const double* vrml::Matrix4x4::operator[] ( unsigned int  m) const throw (std::runtime_error) [inline]

index operator, to access the m-th row

Definition at line 60 of file include/hogman_minimal/graph_viewer/matrix4x4.h.

static Matrix4x4 vrml::Matrix4x4::rotate ( double  phi,
double  u,
double  v,
double  w 
) [static]

rotate with an angle around the axis (u, v, w). IMPORTANT angle is in degree.

Parameters:
phirotation angle in radian
u,v,wthe rotation axis
Matrix4x4 vrml::Matrix4x4::rotate ( double  phi,
double  u,
double  v,
double  w 
) [static]

rotate with an angle around the axis (u, v, w). IMPORTANT angle is in degree.

Parameters:
phirotation angle in radian
u,v,wthe rotation axis

Definition at line 86 of file matrix4x4.cpp.

static Matrix4x4 vrml::Matrix4x4::scale ( double  sx,
double  sy,
double  sz 
) [static]

get scaling Matrix

Matrix4x4 vrml::Matrix4x4::scale ( double  sx,
double  sy,
double  sz 
) [static]

get scaling Matrix

Definition at line 141 of file matrix4x4.cpp.

Matrix4x4 vrml::Matrix4x4::translate ( double  dx,
double  dy,
double  dz 
) [static]

return translation matrix

Definition at line 76 of file matrix4x4.cpp.

static Matrix4x4 vrml::Matrix4x4::translate ( double  dx,
double  dy,
double  dz 
) [static]

return translation matrix


Member Data Documentation

double vrml::Matrix4x4::_data [protected]

array representing the matrix elems

Definition at line 97 of file include/hogman_minimal/graph_viewer/matrix4x4.h.


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Defines


hogman_minimal
Author(s): Maintained by Juergen Sturm
autogenerated on Wed Dec 26 2012 15:36:50