3ds Max C++ API Reference
matrix2.h File Reference
#include "GeomExport.h"
#include "point2.h"
#include "point3.h"
#include <iosfwd>

Classes

class  Matrix2
 

Functions

Matrix2 RotateMatrix (float angle)
 
Matrix2 TransMatrix (const Point2 &p)
 
Matrix2 ScaleMatrix (const Point2 &s)
 
Matrix2 Inverse (const Matrix2 &M)
 
Point2 operator* (const Matrix2 &A, const Point2 &V)
 
Point2 operator* (const Point2 &V, const Matrix2 &A)
 
Point2 VectorTransform (const Matrix2 &M, const Point2 &V)
 

Function Documentation

◆ RotateMatrix()

Matrix2 RotateMatrix ( float  angle)
Remarks
Builds an identity matrix and sets the rotation components based on the specified angle.
Parameters:
float angle

Specifies the angle of rotation.
Returns
A new Matrix2 object with the specified rotation angle.

◆ TransMatrix()

Matrix2 TransMatrix ( const Point2 p)
Remarks
Builds an identity matrix and sets the specified translation components.
Parameters:
const Point2& p

Specifies the translation.
Returns
A new Matrix2 object with the specified translation.

◆ ScaleMatrix()

Matrix2 ScaleMatrix ( const Point2 s)
Remarks
Builds an identity matrix and sets the specified scaling components.
Parameters:
const Point2& s

Specifies the scale factors.
Returns
A new Matrix2 object with the specified scale.

◆ Inverse()

Matrix2 Inverse ( const Matrix2 M)
Remarks
Returns the inverse of the specified Matrix2.
Parameters:
const Matrix2& M

Specifies the matrix to return the inverse of.
Returns
The inverse of the specified Matrix2.

◆ operator*() [1/2]

Point2 operator* ( const Matrix2 A,
const Point2 V 
)
Remarks
Transforms the specified Point2 with the specified Matrix2.
Parameters:
const Matrix2& A

The matrix to transform the point with.

const Point2& V

The point to transform.
Returns
The transformed Point2.

◆ operator*() [2/2]

Point2 operator* ( const Point2 V,
const Matrix2 A 
)
Remarks
Transforms the specified Point2 with the specified Matrix2.
Parameters:
const Point2& V

The point to transform. const Matrix2& A

The matrix to transform the point with.

Returns
The transformed Point2.

◆ VectorTransform()

Point2 VectorTransform ( const Matrix2 M,
const Point2 V 
)
Remarks
This method transforms a 2D point by a 2x3 matrix. This is analogous to the 3D case.
Parameters:
const Matrix2& M

The matrix to transform the point with.

const Point2& V

The point to transform.
Returns
The transformed Point2.