HyperWorks Tools

::hwat::math::ConvertMatrixToRotations

::hwat::math::ConvertMatrixToRotations

Previous topic Next topic No expanding text in this topic  

::hwat::math::ConvertMatrixToRotations

Previous topic Next topic JavaScript is required for expanding text JavaScript is required for the print function  

NAME

::hwat::math::ConvertMatrixToRotations - Convert a cosine matrix into three successive rotations.

 

SYNTAX

::hwat::math::ConvertMatrixToRotations d_MatrixList

 

ARGUMENTS

d_MatrixList

The list contains 9 elements – 3 rotation components for X, Y, and Z respectively

 

RETURNS

{} – matrix is not valid.

1 – matrix appears to be valid.The ordered rotation list: {rotX rotY rotZ} on success

rotX – rotation X component

rotY – rotation Y component

rotZ – rotation Z component

{} on failure (matrix is not valid transform matrix).

 

EXAMPLE

::hwat::math::ConvertMatrixToRotations $theMatrixList

 

COMMENTS

The rotation order is always X, then Y, and then Z.

 

See also

::hwat::math::CheckTransformMatrix

::hwat::math::CheckReflection,

::hwat::math::IsIdentityMatrix

Math Functions