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.
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.
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.
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.
Set this to '0' for returned matrix not to be transposed. By default the matrix is returned by column (as required for CMGUI).
1.02 (28 March 2001)
1.02 - now using PDL::Lite for speed