xsect.calc.rotate2¶
-
xsect.calc.
rotate2
(x, angle, origin=(0, 0))[source]¶ Rotates an array of 2D row vectors by an angle about the specified origin. Returns an array of shape (N, 2).
Parameters: - x : array
An array of (x, y) vectors or shape (N, 2).
- angles : float
Counterclockwise angle from the x-axis in radians.
- origin : array
The origin about which to rotate the vectors.