MeshKit  1.0
Mat4 Class Reference

#include <Mat4.h>

List of all members.

Public Member Functions

 Mat4 ()
 Mat4 (const Vec4 &r0, const Vec4 &r1, const Vec4 &r2, const Vec4 &r3)
 Mat4 (const Mat4 &m)
double & operator() (int i, int j)
double operator() (int i, int j) const
const Vec4operator[] (int i) const
int operator== (const Mat4 &)
Mat4operator= (const Mat4 &m)
Mat4operator+= (const Mat4 &m)
Mat4operator-= (const Mat4 &m)
Mat4operator*= (double s)
Mat4operator/= (double s)
Mat4 operator+ (const Mat4 &m) const
Mat4 operator- (const Mat4 &m) const
Mat4 operator- () const
Mat4 operator* (double s) const
Mat4 operator/ (double s) const
Mat4 operator* (const Mat4 &m) const
Vec4 operator* (const Vec4 &v) const
Vec3 operator* (const Vec3 &v) const
double det () const
Mat4 transpose () const
Mat4 adjoint () const
double inverse (Mat4 &) const
double cramerInverse (Mat4 &) const

Static Public Member Functions

static Mat4 trans (double, double, double)
static Mat4 scale (double, double, double)
static Mat4 xrot (double)
static Mat4 yrot (double)
static Mat4 zrot (double)

Static Public Attributes

static Mat4 identity
static Mat4 zero
static Mat4 unit

Protected Member Functions

void copy (const Mat4 &m)
Vec4 col (int i) const

Private Attributes

Vec4 row [4]

Friends

std::ostream & operator<< (std::ostream &, const Mat4 &)

Detailed Description

Definition at line 15 of file Mat4.h.


Constructor & Destructor Documentation

Mat4 ( ) [inline]

Definition at line 40 of file Mat4.h.

Mat4 ( const Vec4 r0,
const Vec4 r1,
const Vec4 r2,
const Vec4 r3 
) [inline]

Definition at line 41 of file Mat4.h.

Mat4 ( const Mat4 m) [inline]

Definition at line 43 of file Mat4.h.


Member Function Documentation

Mat4 adjoint ( ) const

Definition at line 79 of file Mat4.cpp.

Vec4 col ( int  i) const [inline, protected]

Definition at line 23 of file Mat4.h.

void copy ( const Mat4 m) [inline, protected]

Definition at line 88 of file Mat4.h.

double cramerInverse ( Mat4 inv) const

Definition at line 91 of file Mat4.cpp.

double det ( ) const

Definition at line 69 of file Mat4.cpp.

double inverse ( Mat4 B) const

Definition at line 115 of file Mat4.cpp.

double& operator() ( int  i,
int  j 
) [inline]

Definition at line 47 of file Mat4.h.

double operator() ( int  i,
int  j 
) const [inline]

Definition at line 48 of file Mat4.h.

Mat4 operator* ( double  s) const [inline]

Definition at line 149 of file Mat4.h.

Mat4 operator* ( const Mat4 m) const

Definition at line 57 of file Mat4.cpp.

Vec4 operator* ( const Vec4 v) const [inline]

Definition at line 159 of file Mat4.h.

Vec3 operator* ( const Vec3 v) const [inline]

Definition at line 167 of file Mat4.h.

Mat4 & operator*= ( double  s) [inline]

Definition at line 116 of file Mat4.h.

Mat4 operator+ ( const Mat4 m) const [inline]

Definition at line 128 of file Mat4.h.

Mat4 & operator+= ( const Mat4 m) [inline]

Definition at line 102 of file Mat4.h.

Mat4 operator- ( const Mat4 m) const [inline]

Definition at line 136 of file Mat4.h.

Mat4 operator- ( ) const [inline]

Definition at line 144 of file Mat4.h.

Mat4 & operator-= ( const Mat4 m) [inline]

Definition at line 109 of file Mat4.h.

Mat4 operator/ ( double  s) const [inline]

Definition at line 154 of file Mat4.h.

Mat4 & operator/= ( double  s) [inline]

Definition at line 122 of file Mat4.h.

Mat4& operator= ( const Mat4 m) [inline]

Definition at line 55 of file Mat4.h.

int operator== ( const Mat4 m) [inline]

Definition at line 94 of file Mat4.h.

const Vec4& operator[] ( int  i) const [inline]

Definition at line 49 of file Mat4.h.

Mat4 scale ( double  x,
double  y,
double  z 
) [static]

Definition at line 16 of file Mat4.cpp.

Mat4 trans ( double  x,
double  y,
double  z 
) [static]

Definition at line 8 of file Mat4.cpp.

Mat4 transpose ( ) const

Definition at line 74 of file Mat4.cpp.

Mat4 xrot ( double  a) [static]

Definition at line 24 of file Mat4.cpp.

Mat4 yrot ( double  a) [static]

Definition at line 35 of file Mat4.cpp.

Mat4 zrot ( double  a) [static]

Definition at line 46 of file Mat4.cpp.


Friends And Related Function Documentation

std::ostream& operator<< ( std::ostream &  out,
const Mat4 M 
) [friend]

Definition at line 178 of file Mat4.h.


Member Data Documentation

Mat4 identity [static]

Definition at line 28 of file Mat4.h.

Vec4 row[4] [private]

Definition at line 18 of file Mat4.h.

Mat4 unit [static]

Definition at line 30 of file Mat4.h.

Mat4 zero [static]

Definition at line 29 of file Mat4.h.


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