rotate2d¶
-
lsst.cbp.coordUtils.
rotate2d
(pos, angle)¶ Rotate a 2-dimensional position by a given angle.
Parameters: - pos : pair of
float
Position to rotate.
- angle :
lsst.geom.Angle
Amount of rotation.
Returns: - rotPos : pair of
float
Rotated position.
Examples
rotate2d((1, 2), 90*lsst.geom.degrees, False)
returns(-2, 1)
.- pos : pair of