CmUtils::RotationTransform

Converts a 6 element translation/axis-rotation vector (as provided by the 'rotate' program) into a 16 element transformation matrix. This module requires the PDL and Math::Trig modules to be installed. The transformation matrix is returned as a 1D 16-element list.

angle2trans

Expects an array/list/ptr-to-array of 6 numbers: x-trans y-trans z-trans rot/x rot/y rot/z where the rotations about the axes are given in radians.

degangle2trans

Expects an array/list/ptr-to-array of 6 numbers: x-trans y-trans z-trans rot/x rot/y rot/z where the rotations about the axes are given in degrees.

readDat

Expects a file name. File contains 6 numbers: x-trans y-trans z-trans rot/x rot/y rot/z as output from the 'rotate' program.

VARIABLES

$CmUtils::RotationTransform::Transpose

Set this to '0' for returned matrix not to be transposed. By default the matrix is returned by column (as required for CMGUI).

VERSION

1.02 (28 March 2001)

CHANGES

1.02 - now using PDL::Lite for speed