|
LSSTApplications
1.1.2+25,10.0+13,10.0+132,10.0+133,10.0+224,10.0+41,10.0+8,10.0-1-g0f53050+14,10.0-1-g4b7b172+19,10.0-1-g61a5bae+98,10.0-1-g7408a83+3,10.0-1-gc1e0f5a+19,10.0-1-gdb4482e+14,10.0-11-g3947115+2,10.0-12-g8719d8b+2,10.0-15-ga3f480f+1,10.0-2-g4f67435,10.0-2-gcb4bc6c+26,10.0-28-gf7f57a9+1,10.0-3-g1bbe32c+14,10.0-3-g5b46d21,10.0-4-g027f45f+5,10.0-4-g86f66b5+2,10.0-4-gc4fccf3+24,10.0-40-g4349866+2,10.0-5-g766159b,10.0-5-gca2295e+25,10.0-6-g462a451+1
LSSTDataManagementBasePackage
|
Public Member Functions | |
| def | __init__ |
| def | wraps |
| def | getBoundingBox |
| def | getMin |
| def | getMax |
| def | getThetaExtent |
| def | getCenter |
| def | isEmpty |
| def | isFull |
| def | containsPoint |
| def | contains |
| def | intersects |
| def | extend |
| def | shrink |
| def | setEmpty |
| def | setFull |
| def | __repr__ |
| def | __eq__ |
Static Public Member Functions | |
| def | edge |
Public Attributes | |
| min | |
| max | |
A spherical coordinate space bounding box. This is similar to a bounding box in cartesian space in that it is specified by a pair of points; however, a spherical box may correspond to the entire unit-sphere, a spherical cap, a lune or the traditional rectangle. Additionally, spherical boxes can span the 0/360 degree longitude angle discontinuity. Note that points falling exactly on spherical box edges are considered to be inside (contained by) the box.
Definition at line 347 of file geometry.py.
| def lsst.geom.geometry.SphericalBox.__init__ | ( | self, | |
| args | |||
| ) |
Creates a new spherical box. If no arguments are supplied, then an empty box is created. If the arguments consist of a single SphericalRegion, then a copy of its bounding box is created. Otherwise, the arguments must consist of a pair of 2 (spherical) or 3 (cartesian 3-vector) element coordinate tuples/lists that specify the minimum/maximum longitude/latitude angles for the box. Latitude angles must be within [-90, 90] degrees, and the minimum latitude angle must be less than or equal to the maximum. If both minimum and maximum longitude angles lie in the range [0.0, 360.0], then the maximum can be less than the minimum. For example, a box with min/max longitude angles of 350/10 deg spans the longitude angle ranges [350, 360) and [0, 10]. Otherwise, the minimum must be less than or equal to the maximum, though values can be arbitrary. If the two are are separated by 360 degrees or more, then the box spans longitude angles [0, 360). Otherwise, both values are range reduced. For example, a spherical box with min/max longitude angles specified as 350/370 deg spans longitude angle ranges [350, 360) and [0, 10].
Definition at line 359 of file geometry.py.
| def lsst.geom.geometry.SphericalBox.__eq__ | ( | self, | |
| other | |||
| ) |
Definition at line 707 of file geometry.py.
| def lsst.geom.geometry.SphericalBox.__repr__ | ( | self | ) |
| def lsst.geom.geometry.SphericalBox.contains | ( | self, | |
| pointOrRegion | |||
| ) |
Returns True if this spherical box completely contains the given point or spherical region. Note that the implementation is conservative where ellipses are concerned: False may be returned for an ellipse that is actually completely contained in this box.
Definition at line 478 of file geometry.py.
| def lsst.geom.geometry.SphericalBox.containsPoint | ( | self, | |
| p | |||
| ) |
Returns True if this spherical box contains the given point, which must be specified in spherical coordinates.
Definition at line 466 of file geometry.py.
|
static |
Returns a spherical bounding box for the great circle edge connecting v1 to v2 with plane normal n. All arguments must be cartesian unit vectors.
Definition at line 715 of file geometry.py.
| def lsst.geom.geometry.SphericalBox.extend | ( | self, | |
| pointOrRegion | |||
| ) |
Extends this box to the smallest spherical box S containing the union of this box with the specified point or spherical region.
Definition at line 534 of file geometry.py.
| def lsst.geom.geometry.SphericalBox.getBoundingBox | ( | self | ) |
| def lsst.geom.geometry.SphericalBox.getCenter | ( | self | ) |
Returns an 2-tuple of floats corresponding to the longitude/latitude angles (in degrees) of the center of this spherical box.
Definition at line 442 of file geometry.py.
| def lsst.geom.geometry.SphericalBox.getMax | ( | self | ) |
Returns the maximum longitude and latitude angles of this spherical box as a 2-tuple of floats (in units of degrees).
Definition at line 428 of file geometry.py.
| def lsst.geom.geometry.SphericalBox.getMin | ( | self | ) |
Returns the minimum longitude and latitude angles of this spherical box as a 2-tuple of floats (in units of degrees).
Definition at line 422 of file geometry.py.
| def lsst.geom.geometry.SphericalBox.getThetaExtent | ( | self | ) |
| def lsst.geom.geometry.SphericalBox.intersects | ( | self, | |
| pointOrRegion | |||
| ) |
Returns True if this spherical box intersects the given point or spherical region. Note that the implementation is conservative: True may be returned for a region that does not actually intersect this box.
Definition at line 505 of file geometry.py.
| def lsst.geom.geometry.SphericalBox.isEmpty | ( | self | ) |
| def lsst.geom.geometry.SphericalBox.isFull | ( | self | ) |
Returns True if this spherical box contains every point on the unit sphere.
Definition at line 460 of file geometry.py.
| def lsst.geom.geometry.SphericalBox.setEmpty | ( | self | ) |
| def lsst.geom.geometry.SphericalBox.setFull | ( | self | ) |
| def lsst.geom.geometry.SphericalBox.shrink | ( | self, | |
| box | |||
| ) |
Shrinks this box to the smallest spherical box containing the intersection of this box and the specified one.
Definition at line 627 of file geometry.py.
| def lsst.geom.geometry.SphericalBox.wraps | ( | self | ) |
Returns True if this spherical box wraps across the 0/360 degree longitude angle discontinuity.
Definition at line 411 of file geometry.py.
| lsst.geom.geometry.SphericalBox.max |
Definition at line 387 of file geometry.py.
| lsst.geom.geometry.SphericalBox.min |
Definition at line 386 of file geometry.py.
1.8.5