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