NAME: rotvec PURPOSE: (one line only) Rotate 3-D vectors from one coordinate system to another DESCRIPTION: CATEGORY: Mathematical CALLING SEQUENCE: rotvec,x,y,z,rotmat,xp,yp,zp INPUTS: x - Cartesian x-coordinate of point. y - Cartesian y-coordinate of point. z - Cartesian z-coordinate of point. rotmat - 3x3 rotation matrix OPTIONAL INPUT PARAMETERS: KEYWORD INPUT PARAMETERS: REVERSE - Flag, if set performs the inverse rotation. OUTPUTS: xp - Rotated x-coordinates. yp - Rotated y-coordinates. zp - Rotated z-coordinates. KEYWORD OUTPUT PARAMETERS: COMMON BLOCKS: SIDE EFFECTS: RESTRICTIONS: PROCEDURE: MODIFICATION HISTORY: 2011/11/29, Written by Marc W. Buie, Southwest Research Institute cloned from ROTATE.F written by David J. Tholen