lsst.geom
14.0-1-g7257b6a+1
|
Public Member Functions | |
def | __init__ (self, center, radius) |
def | getBoundingBox (self) |
def | getBoundingCircle (self) |
def | getCenter (self) |
def | getRadius (self) |
def | isEmpty (self) |
def | isFull (self) |
def | contains (self, pointOrRegion) |
def | intersects (self, pointOrRegion) |
def | __repr__ (self) |
def | __eq__ (self, other) |
def | __hash__ (self) |
Public Attributes | |
center | |
radius | |
boundingBox | |
A circle on the unit sphere. Points falling exactly on the circle are considered to be inside (contained by) the circle.
def lsst.geom.geometry.SphericalCircle.__init__ | ( | self, | |
center, | |||
radius | |||
) |
Creates a new spherical circle with the given center and radius.
def lsst.geom.geometry.SphericalCircle.__repr__ | ( | self | ) |
Returns a string representation of this circle.
def lsst.geom.geometry.SphericalCircle.contains | ( | self, | |
pointOrRegion | |||
) |
Returns True if the specified point or spherical region is completely contained in this circle. Note that the implementation is conservative where ellipses are concerned: False may be returned for an ellipse that is actually completely contained in this circle.
def lsst.geom.geometry.SphericalCircle.getBoundingBox | ( | self | ) |
Returns a bounding box for this spherical circle.
def lsst.geom.geometry.SphericalCircle.getCenter | ( | self | ) |
Returns an (ra, dec) 2-tuple of floats corresponding to the center of this circle.
def lsst.geom.geometry.SphericalCircle.getRadius | ( | self | ) |
Returns the radius (degrees) of this circle.
def lsst.geom.geometry.SphericalCircle.intersects | ( | self, | |
pointOrRegion | |||
) |
Returns True if the given point or spherical region intersects this circle. Note that the implementation is conservative where ellipses are concerned: True may be returned for an ellipse that is actually disjoint from this circle.
def lsst.geom.geometry.SphericalCircle.isEmpty | ( | self | ) |
Returns True if this circle contains no points.
def lsst.geom.geometry.SphericalCircle.isFull | ( | self | ) |
Returns True if this spherical box contains every point on the unit sphere.