lsst.geom  15.0+8
Public Member Functions | Public Attributes | List of all members
lsst.geom.geometry.SphericalCircle Class Reference
Inheritance diagram for lsst.geom.geometry.SphericalCircle:
lsst.geom.geometry.SphericalRegion

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
 

Detailed Description

A circle on the unit sphere. Points falling exactly on the
circle are considered to be inside (contained by) the circle.

Constructor & Destructor Documentation

◆ __init__()

def lsst.geom.geometry.SphericalCircle.__init__ (   self,
  center,
  radius 
)
Creates a new spherical circle with the given center and radius.

Member Function Documentation

◆ __repr__()

def lsst.geom.geometry.SphericalCircle.__repr__ (   self)
Returns a string representation of this circle.

◆ contains()

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.

◆ getBoundingBox()

def lsst.geom.geometry.SphericalCircle.getBoundingBox (   self)
Returns a bounding box for this spherical circle.

◆ getCenter()

def lsst.geom.geometry.SphericalCircle.getCenter (   self)
Returns an (ra, dec) 2-tuple of floats corresponding to the
center of this circle.

◆ getRadius()

def lsst.geom.geometry.SphericalCircle.getRadius (   self)
Returns the radius (degrees) of this circle.

◆ intersects()

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.

◆ isEmpty()

def lsst.geom.geometry.SphericalCircle.isEmpty (   self)
Returns True if this circle contains no points.

◆ isFull()

def lsst.geom.geometry.SphericalCircle.isFull (   self)
Returns True if this spherical box contains every point
on the unit sphere.

The documentation for this class was generated from the following file: