IdentityTM Class Reference

IdentityTM Class Reference

#include <object.h>

Class Description

This class is another version of Matrix3 where the matrix is initialized to the identity by the default constructor.

See also
Class Matrix3
+ Inheritance diagram for IdentityTM:

Public Member Functions

 IdentityTM ()
 Constructor. More...
 
- Public Member Functions inherited from Matrix3
const Point3operator[] (int i) const
 
void SetNotIdent ()
 
void SetIdentFlags (DWORD f)
 
DWORD GetIdentFlags () const
 
void ClearIdentFlag (DWORD f)
 
BOOL IsIdentity () const
 
void ValidateFlags ()
 
MRowGetAddr ()
 
const MRowGetAddr () const
 
 Matrix3 ()
 
 Matrix3 (BOOL init)
 
 Matrix3 (float(*fp)[3])
 
 Matrix3 (const Point3 &U, const Point3 &V, const Point3 &N, const Point3 &T)
 
Matrix3Set (const Point3 &U, const Point3 &V, const Point3 &N, const Point3 &T)
 
int operator== (const Matrix3 &M) const
 
bool operator!= (const Matrix3 &M) const
 
int Equals (const Matrix3 &M, float epsilon=1E-6f) const
 
Matrix3operator-= (const Matrix3 &M)
 
Matrix3operator+= (const Matrix3 &M)
 
Matrix3operator*= (const Matrix3 &M)
 Multiply this matrix on the right by Matrix m. More...
 
Matrix3operator*= (float a)
 
void IdentityMatrix ()
 
void Zero ()
 
Point3 GetRow (int i) const
 
void SetRow (int i, Point3 p)
 
Point4 GetColumn (int i) const
 
void SetColumn (int i, Point4 col)
 
Point3 GetColumn3 (int i) const
 
void NoTrans ()
 
void NoRot ()
 
void NoScale ()
 
void Orthogonalize ()
 Ortho-normalize the matrix. More...
 
void SetTrans (const Point3 &p)
 
void SetTrans (int i, float v)
 
const Point3GetTrans () const
 
void Translate (const Point3 &p)
 
void RotateX (float angle)
 
void RotateY (float angle)
 
void RotateZ (float angle)
 
void Scale (const Point3 &s, BOOL trans=FALSE)
 
void PreTranslate (const Point3 &p)
 
void PreRotateX (float angle)
 
void PreRotateY (float angle)
 
void PreRotateZ (float angle)
 
void PreScale (const Point3 &s, BOOL trans=FALSE)
 
void SetTranslate (const Point3 &p)
 
void SetRotateX (float angle)
 
void SetRotateY (float angle)
 
void SetRotateZ (float angle)
 
void SetRotate (const Quat &q)
 
void SetRotate (const AngAxis &aa)
 
void SetRotate (float yaw, float pitch, float roll)
 
void SetAngleAxis (const Point3 &axis, float angle)
 
void SetScale (const Point3 &s)
 
void SetFromToUp (const Point3 &from, const Point3 &to, const Point3 &up)
 
void Invert ()
 
Matrix3 operator* (const Matrix3 &) const
 
Matrix3 operator+ (const Matrix3 &) const
 
Matrix3 operator- (const Matrix3 &) const
 
Point3 PointTransform (const Point3 &p) const
 
Point3 VectorTransform (const Point3 &p) const
 
void TransformPoints (Point3 *array, int n, int stride=sizeof(Point3))
 
void TransformPoints (const Point3 *array, Point3 *to, int n, int stride=sizeof(Point3), int strideTo=sizeof(Point3))
 
void TransformVectors (Point3 *array, int n, int stride=sizeof(Point3))
 
void TransformVectors (const Point3 *array, Point3 *to, int n, int stride=sizeof(Point3), int strideTo=sizeof(Point3))
 
void GetYawPitchRoll (float *yaw, float *pitch, float *roll)
 
IOResult Save (ISave *isave)
 Save this Matrix3 to disk. More...
 
IOResult Load (ILoad *iload)
 Load the data for this Matrix3. More...
 
BOOL Parity () const
 

Additional Inherited Members

- Static Public Member Functions inherited from MaxHeapOperators
static UtilExport voidoperator new (size_t size)
 Standard new operator used to allocate objects If there is insufficient memory, an exception will be thrown. More...
 
static UtilExport voidoperator new (size_t size, const std::nothrow_t &e)
 Standard new operator used to allocate objects if there is insufficient memory, NULL will be returned. More...
 
static UtilExport voidoperator new (size_t size, const char *filename, int line)
 New operator used to allocate objects that takes the filename and line number where the new was called If there is insufficient memory, an exception will be thrown. More...
 
static UtilExport voidoperator new (size_t size, int block_type, const char *filename, int line)
 New operator used to allocate objects that takes the type of memory, filename and line number where the new was called If there is insufficient memory, an exception will be thrown. More...
 
static UtilExport voidoperator new (size_t size, const std::nothrow_t &e, const char *filename, int line)
 New operator used to allocate objects that takes the filename and line number where the new was called If there is insufficient memory, NULL will be returned. More...
 
static UtilExport voidoperator new (size_t size, unsigned long flags)
 New operator used to allocate objects that takes extra flags to specify special operations If there is insufficient memory, an exception will be thrown. More...
 
static UtilExport voidoperator new (size_t size, const std::nothrow_t &e, unsigned long flags)
 New operator used to allocate objects that takes extra flags to specify special operations If there is insufficient memory, NULL will be returned. More...
 
static UtilExport voidoperator new[] (size_t size)
 New operator used to allocate arrays of objects If there is insufficient memory, an exception will be thrown. More...
 
static UtilExport voidoperator new[] (size_t size, const std::nothrow_t &e)
 New operator used to allocate arrays of objects If there is insufficient memory, NULL will be returned. More...
 
static UtilExport voidoperator new[] (size_t size, const char *filename, int line)
 New operator used to allocate arrays of objects If there is insufficient memory, an exception will be thrown. More...
 
static UtilExport voidoperator new[] (size_t size, int block_type, const char *filename, int line)
 New operator used to allocate arrays of objects. More...
 
static UtilExport voidoperator new[] (size_t size, const std::nothrow_t &e, const char *filename, int line)
 New operator used to allocate arrays of objects If there is insufficient memory, NULL will be returned. More...
 
static UtilExport voidoperator new[] (size_t size, unsigned long flags)
 New operator used to allocate arrays of objects If there is insufficient memory, an exception will be thrown. More...
 
static UtilExport voidoperator new[] (size_t size, const std::nothrow_t &e, unsigned long flags)
 New operator used to allocate arrays of objects If there is insufficient memory, NULL will be returned. More...
 
static UtilExport void operator delete (void *ptr)
 Standard delete operator used to deallocate an object If the pointer is invalid, an exception will be thrown. More...
 
static UtilExport void operator delete (void *ptr, const std::nothrow_t &e)
 Standard delete operator used to deallocate an object If the pointer is invalid, nothing will happen. More...
 
static UtilExport void operator delete (void *ptr, const char *filename, int line)
 Delete operator used to deallocate an object that takes the filename and line number where the delete was called If the pointer is invalid, an exception will be thrown. More...
 
static UtilExport void operator delete (void *ptr, int block_type, const char *filename, int line)
 Delete operator used to deallocate an object that takes the type of memory, filename and line number where the delete was called If the pointer is invalid, an exception will be thrown. More...
 
static UtilExport void operator delete (void *ptr, const std::nothrow_t &e, const char *filename, int line)
 Delete operator used to deallocate an object that takes the filename and line number where the delete was called If the pointer is invalid, nothing will happen. More...
 
static UtilExport void operator delete (void *ptr, unsigned long flags)
 Delete operator used to deallocate an object that takes extra flags to specify special operations If the pointer is invalid, an exception will be thrown. More...
 
static UtilExport void operator delete (void *ptr, const std::nothrow_t &e, unsigned long flags)
 Delete operator used to deallocate an object that takes extra flags to specify special operations If the pointer is invalid, nothing will happen. More...
 
static UtilExport void operator delete[] (void *ptr)
 Standard delete operator used to deallocate an array of objects If the pointer is invalid, an exception will be thrown. More...
 
static UtilExport void operator delete[] (void *ptr, const std::nothrow_t &e)
 Standard delete operator used to deallocate an array of objects If the pointer is invalid, nothing will happen. More...
 
static UtilExport void operator delete[] (void *ptr, const char *filename, int line)
 Delete operator used to deallocate an array of objects that takes the filename and line number where the delete was called If the pointer is invalid, an exception will be thrown. More...
 
static UtilExport void operator delete[] (void *ptr, int block_type, const char *filename, int line)
 Delete operator used to deallocate an array of objects that takes the type of memory, filename and line number where the delete was called If the pointer is invalid, an exception will be thrown. More...
 
static UtilExport void operator delete[] (void *ptr, const std::nothrow_t &e, const char *filename, int line)
 Delete operator used to deallocate an array of objects that takes the filename and line number where the delete was called If the pointer is invalid, nothing will happen. More...
 
static UtilExport void operator delete[] (void *ptr, unsigned long flags)
 Delete operator used to deallocate an array of objects that takes extra flags to specify special operations If the pointer is invalid, an exception will be thrown. More...
 
static UtilExport void operator delete[] (void *ptr, const std::nothrow_t &e, unsigned long flags)
 Delete operator used to deallocate an array of objects that takes extra flags to specify special operations If the pointer is invalid, an exception will be thrown. More...
 
static UtilExport voidoperator new (size_t size, void *placement_ptr)
 Placement new operator. More...
 
static UtilExport void operator delete (void *ptr, void *placement_ptr)
 Placement delete operator. More...
 
static UtilExport voidaligned_malloc (size_t size, size_t alignment)
 Allocates memory on a specified alignment boundary. More...
 
static UtilExport voidaligned_realloc (void *ptr, size_t size, size_t alignment)
 Reallocates memory on a specified alignment boundary. More...
 
static UtilExport void aligned_free (void *ptr)
 Frees a block of memory that was allocated with aligned_malloc/aligned_realloc. More...
 
- Static Public Attributes inherited from Matrix3
static const Matrix3 Identity
 An global instance of Matrix3 set to the identity. More...
 

Constructor & Destructor Documentation

IdentityTM ( )
inline

Constructor.

The matrix is initialized to the identity matrix. There is also a global instance of this class available for use: extern IdentityTM idTM;

169 { IdentityMatrix(); }
void IdentityMatrix()