MAXMathUtils

This class contains math functions.

Interface Methods

Description

MatrixFixup

Zeros any values below epsilon

AngleBetweenVectors

Returns the angle (in radians) between two vectors

ParentAbsolute

Converts the quaternion to a matrix and multiplies it by the specified matrix

RemoveMatrixScaling

Removes all scaling from a matrix

RoundedTime

Rounds the time to a reasonable number of significant figures

CreateScalingMatrix

Creates a matrix with scale factors


MAXMathUtils:: MatrixFixup (Matrix3& Matrix)

This method zeros any values below epsilon.

Parameters:

Matrix

The matrix to fix

Return Values:

None


MAXMathUtils::AngleBetweenVectors (Point3 *bone_vec, Point3 *x_vec)

This method returns the angle (in radians) between two vectors.

Parameters:

bone_vec

Vector 1

x_vec

Vector 2

Return Values:

Float


MAXMathUtils::ParentAbsolute (Matrix3 & mat, Quat & q)

This method converts the quaternion to a matrix and multiples it by the specified matrix.

Parameters:

mat

Reference to the matrix

q

Reference to the quaternion

Return Values:

None


MAXMathUtils::RemoveMatrixScaling (Matrix3 orig_cur_mat)

This method removes all scaling from a matrix.

Parameters:

orig_cur_mat

The matrix from which to remove the scaling

Return Values:

Matrix3

The matrix with no scaling


MAXMathUtils::RoundedTime (double inTime)

This method rounds the time to a reasonable number of significant figures.

Parameters:

inTime

The time to round

Return Values:

double

The rounded time value


MAXMathUtils::CreateScalingMatrix (Matrix3 orig_cur_mat)

This method creates a matrix with scale factors.

Parameters:

orig_cur_mat

The matrix to extract the scaling from

Return Values:

Matrix3

A matrix with the scaling of its parent

 

§See asterisked (*) statement at Legal Information © 2001 Intel Corporation.