ROTPOINT
Name
rotpoint
Purpose
Rotate x,y,z point(s) about arbitrary axis.
Description
Category
Mathematical
Calling Sequence
rotpoint,x,y,z,axis,angle,xp,yp,zp
Inputs
x - Cartesian x-coordinate of point.
y - Cartesian y-coordinate of point.
z - Cartesian z-coordinate of point.
axis - Axis to rotate about:
'x' or 'X' or 0 - indicates rotation about x-axis
'y' or 'Y' or 1 - indicates rotation about y-axis
'z' or 'Z' or 2 - indicates rotation about z-axis
angle - Angle to rotate by (scalar). Radians unless /DEG is set.
Optional Input Parameters
Keyword Input Parameters
DEG - flag, if true indicates angle is in degrees, otherwise angle is
taken to be in radians.
Outputs
xp - Rotated x-coordinates.
yp - Rotated y-coordinates.
zp - Rotated z-coordinates.
Keyword Output Parameters
Common Blocks
Side Effects
Restrictions
Procedure
Modification History
Written by Marc W. Buie, Lowell Observatory, 1995/01/04
2015/03/17, MWB, changed to allow integer or long inputs