lsst.afw  21.0.0-18-g1421380c6+e734d31160
Functions
lsst.afw.cameraGeom.rotateBBoxBy90 Namespace Reference

Functions

def rotateBBoxBy90 (bbox, n90, dimensions)
 

Function Documentation

◆ rotateBBoxBy90()

def lsst.afw.cameraGeom.rotateBBoxBy90.rotateBBoxBy90 (   bbox,
  n90,
  dimensions 
)
Rotate a bounding box by an integer multiple of 90 degrees.

Parameters
----------
bbox : `lsst.geom.Box2I`
    Bounding box to rotate.
n90 : `int`
    Number of quarter rotations to perform
dimensions : `tuple` of `int`
    Dimensions of the parent grid.

Returns
-------
newBbox : `lsst.geom.Box`
    Rotated bounding box.

Notes
-----
**TODO:**
    document dimensions better; what does it specify?

Definition at line 29 of file rotateBBoxBy90.py.