rotate2d

lsst.cbp.coordUtils.rotate2d(pos, angle)

Rotate a 2-dimensional position by a given angle.

Parameters
pospair of float

Position to rotate.

anglelsst.geom.Angle

Amount of rotation.

Returns
rotPospair of float

Rotated position.

Examples

rotate2d((1, 2), 90*lsst.geom.degrees, False) returns (-2, 1).