3ds Max C++ API Reference
Loading...
Searching...
No Matches
IdentityTM Class Reference

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

#include <object.h>

+ Inheritance diagram for IdentityTM:

Public Member Functions

 IdentityTM ()
 Constructor.
 
- Public Member Functions inherited from Matrix3
 Matrix3 ()
 
 Matrix3 (const Matrix3 &)=default
 
 Matrix3 (Matrix3 &&)=default
 
Matrix3operator= (const Matrix3 &)=default
 
Matrix3operator= (Matrix3 &&)=default
 
const Point3operator[] (int i) const
 
void SetNotIdent ()
 
void SetIdentFlags (uint32_t f)
 
uint32_t GetIdentFlags () const
 
void ClearIdentFlag (uint32_t f)
 
bool IsIdentity () const
 
void ValidateFlags ()
 
MRowGetAddr ()
 
const MRowGetAddr () const
 
 MAX_DEPRECATE_MATRIX_BOOL_CTOR ("Matrix3 and DMatrix3 are now initialized to identity by default.\n" "No need to use the Matrix3(bool) constructor anymore.\n" "Define MAX_SILENCE_DEPRECATED_MATRIX_BOOL_CTOR to silence this warning.") explicit Matrix3(bool)
 
 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.
 
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.
 
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)
 
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)
 
UTILGEOMEXPORT IOResult Save (ISave *isave)
 Save this Matrix3 to disk.
 
UTILGEOMEXPORT IOResult Load (ILoad *iload)
 Load the data for this Matrix3.
 
bool Parity () const
 

Additional Inherited Members

- Static Public Attributes inherited from Matrix3
static const Matrix3 Identity
 An global instance of Matrix3 set to the identity.
 

Detailed Description

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

See also
Class Matrix3

Constructor & Destructor Documentation

◆ IdentityTM()

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()