rotate
- acstools.utils_findsat_mrt.rotate(origin, point, angle)
Rotate a point counterclockwise by a given angle around a given origin.
- Parameters:
origin (tuple of float) –
(x, y)
coordinates of the origin about which rotation is centered.point (tuple, float) –
(x, y)
coordinates (in the unrotated reference frame) of the point whose new coordinates (in the rotated reference frame) will be calculated.angle (float) – Angle of rotation in radians.
- Returns:
qx (float) – Resulting x coordinate in the rotated reference frame.
qy (float) – Resulting y coordinate in the rotated reference frame.