Anax2dcm.m

From Spinach Documentation Wiki
Jump to: navigation, search

Converts angle-axis rotation parameters to directional cosine matrix. Angle should be in radians, axis is normalized by the function. Syntax:

            dcm=anax2dcm(rot_axis,rot_angle)

Arguments:

     rot_axis - cartesian direction vector given as a row or column 
                with three real elements
    rot_angle - rotation angle in radians