webbpsf_ext.coords.xy_rot

webbpsf_ext.coords.xy_rot(x, y, ang)[source]

Rotate (x,y) positions to new coords

Rotate (x,y) values by some angle. Positive ang values rotate counter-clockwise.

Parameters
  • x (float or array) – X location values

  • y (float or array) – Y location values

  • ang (float or array) – Rotation angle in degrees CCW