rotate2dccw
- jwst.ami.utils.rotate2dccw(vectors, thetarad)[source]
Apply a CCW rotation to the given vectors.
- For a positive (CCW) rotation:
x decreases under slight rotation y increases under slight rotation
- Parameters:
- vectorsndarray[float]
List of 2-D vectors, so the shape is Nx2
- thetaradfloat
Rotation to apply in radians
- Returns:
- ndarray[float]
Rotated vectors