rotate

acstools.utils_findsat_mrt.rotate(origin, point, angle)

Rotate a point counterclockwise by a given angle around a given origin.

Parameters:
origintuple of float

(x, y) coordinates of the origin about which rotation is centered.

pointtuple, float

(x, y) coordinates (in the unrotated reference frame) of the point whose new coordinates (in the rotated reference frame) will be calculated.

anglefloat

Angle of rotation in radians.

Returns:
qxfloat

Resulting x coordinate in the rotated reference frame.

qyfloat

Resulting y coordinate in the rotated reference frame.