Matrix44 Class Reference
 
 
 
Matrix44 Class Reference

#include <Matrix44.h>

Inheritance diagram for Matrix44:
MaxHeapOperators

Public Member Functions

  Matrix44 ()
  Matrix44 (const Matrix44 &from)
Matrix44 operator= (const Matrix44 &from)
  ~Matrix44 ()
DataBridgeAPI Matrix44 MakeTranspose ()
DataBridgeAPI Matrix44 MakeIdentity ()
DataBridgeAPI float  MakeInverse ()
DataBridgeAPI Matrix44 MakeMultiply (const Matrix44 &m2)

Static Public Member Functions

static DataBridgeAPI Matrix44 Multiply (Matrix44 &mOut, const Matrix44 &m1, const Matrix44 &m2)

Public Attributes

union {
   struct {
      float   _11
      float   _12
      float   _13
      float   _14
      float   _21
      float   _22
      float   _23
      float   _24
      float   _31
      float   _32
      float   _33
      float   _34
      float   _41
      float   _42
      float   _43
      float   _44
   } 
   float   m [4][4]
}; 

Constructor & Destructor Documentation

Matrix44 ( ) [inline]
{
        // do nothing.
}
Matrix44 ( const Matrix44 from ) [inline]
{
        memcpy(m, from.m, sizeof(m));
}
~Matrix44 ( ) [inline]
{
        // do nothing.
}

Member Function Documentation

Matrix44 & operator= ( const Matrix44 from ) [inline]
{
        if (&from == this)
        {
                return *this;
        }

        memcpy(m, from.m, sizeof(m));

        return *this;
}
DataBridgeAPI Matrix44& MakeTranspose ( )
DataBridgeAPI Matrix44& MakeIdentity ( )
DataBridgeAPI float MakeInverse ( )
DataBridgeAPI Matrix44& MakeMultiply ( const Matrix44 m2 )
static DataBridgeAPI Matrix44& Multiply ( Matrix44 mOut,
const Matrix44 m1,
const Matrix44 m2 
) [static]

Member Data Documentation