MQMatrix class

4x4 matrix.

Method

Member Description
get Get a value.
set Set a value.
mult Multiply a vector and matrix.
mult3 Multiply a vector and matrix.
indentify Indentity a matrix.
transpose Transpose a matrix.
transpose3 Transpose a 3x3 matrix.
getScaling Get a scaling factor of SRT transform matrix.
getRotation Get a rotation angle of SRT transform matrix.
getTranslation Get a translation factor of SRT transform matrix.
setTransform Set a SRT transform matrix.
setInverseTransform Set a SRT inverse transform matrix.

get(row, col)

Get a value.

Parameters:
int row - index of row (range of [1:4])
int col - index of column (range of [1:4])
Return value:
float - value

set(row, col, value)

Set a value.

Parameters:
int row - index of row (range of [1:4])
int col - index of column (range of [1:4])
float value - value

mult(point)

Multiply a vector and matrix.

Parameters:
MQPoint point - vector
Return value:
MQPoint - vector

mult3(point)

Multiply a vector and matrix.

Parameters:
MQPoint point - vector
Return value:
MQPoint - vector

indentify

Indentity a matrix.

transpose

Transpose a matrix.

transpose3

Transpose a 3x3 matrix.

getScaling

Get a scaling factor of SRT transform matrix.

Return value:
MQPoint - scaling factor

getRotation

Get a rotation angle of SRT transform matrix.

Return value:
MQAngle - rotation angle

getTranslation

Get a translation factor of SRT transform matrix.

Return value:
MQPoint - scaling factor

setTransform(scaling, rotation, translation)

Set a SRT transform matrix.

Parameters:
MQPoint scaling - scaling factor
MQAngle rotation - rotation angle
MQPoint translation - translation factor

setInverseTransform(scaling, rotation, translation)

Set a SRT inverse transform matrix.

Parameters:
MQPoint scaling - scaling factor
MQAngle rotation - rotation angle
MQPoint translation - translation factor