>  Docs Center  >  Libraries  >  JHU/APL/S1R  >  ROTATE_XY
Libraries

ROTATE_XY

ROTATE_XY

Name


      ROTATE_XY

Purpose


      Rotate a set of X,Y points about a given point.

Category


Calling Sequence


      rotate_xy, x1, y1, ang, x0, y0, x2, y2

Inputs


      x1, y1 = original points to rotate. in
          Arrays or scalars.
      ang = angle to rotate by in radians (CCW). in
      x0, y0 = center to rotate about. in

Keyword Parameters


Keywords


        /DEGREES means angle is in degrees, else radians.

Outputs


      x2, y2 = rotated points. out

Common Blocks


Notes


Modification History


      R. Sterner. 22 Oct, 1986.
      R. Sterner, 22 Jan, 1990 --- converted to SUN.
      RES 13 Feb, 1991 --- added /degrees.
      Johns Hopkins University Applied Physics Laboratory.
  Copyright (C) 1986, Johns Hopkins University/Applied Physics Laboratory
  This software may be used, copied, or redistributed as long as it is not
  sold and this copyright notice is reproduced on each copy made. This
  routine is provided as is without any express or implied warranties
  whatsoever. Other limitations apply as described in the file disclaimer.txt.



© 2024 NV5 Geospatial Solutions, Inc. |  Legal
   Contact Us