Public Member Functions | |
def | __init__ |
def | getBoundingBox |
def | getBoundingCircle |
def | getInnerCircle |
def | getCenter |
def | getMajorAxisAngle |
def | getSemiMajorAxisLength |
def | getSemiMinorAxisLength |
def | contains |
def | intersects |
def | __repr__ |
def | __eq__ |
def | __hash__ |
Public Attributes | |
center | |
semiMajorAxisLength | |
semiMinorAxisLength | |
majorAxisAngle | |
boundingCircle | |
innerCircle | |
An ellipse on the unit sphere. This is a standard 2D cartesian ellipse defined on the plane tangent to the unit sphere at the ellipse center and then orthographically projected onto the surface of the unit sphere.
def lsst.geom.geometry.SphericalEllipse.__repr__ | ( | self | ) |
Returns a string representation of this ellipse.
def lsst.geom.geometry.SphericalEllipse.contains | ( | self, | |
pointOrRegion | |||
) |
Returns True if the specified point or spherical region is completely contained in this ellipse. The implementation is conservative in the sense that False may be returned for a region that really is contained by this ellipse.
def lsst.geom.geometry.SphericalEllipse.getBoundingBox | ( | self | ) |
Returns a bounding box for this spherical ellipse. Note that at present this is conservative: a bounding box for the circle C with radius equal to the semi-major axis length of this ellipse is returned.
def lsst.geom.geometry.SphericalEllipse.getBoundingCircle | ( | self | ) |
Returns a bounding circle for this spherical ellipse. This is a circle with the same center as this ellipse and with radius equal to the arcsine of the semi-major axis length.
def lsst.geom.geometry.SphericalEllipse.getCenter | ( | self | ) |
Returns an (ra, dec) 2-tuple of floats corresponding to the center of this ellipse.
def lsst.geom.geometry.SphericalEllipse.getInnerCircle | ( | self | ) |
Returns the circle of maximum radius having the same center as this ellipse and which is completely contained in the ellipse.
def lsst.geom.geometry.SphericalEllipse.getMajorAxisAngle | ( | self | ) |
Return the major axis angle (east of north, in degrees) for this ellipse.
def lsst.geom.geometry.SphericalEllipse.getSemiMajorAxisLength | ( | self | ) |
Returns the semi-major axis length of this ellipse. Units are in arcsec since ellipses are typically small.
def lsst.geom.geometry.SphericalEllipse.getSemiMinorAxisLength | ( | self | ) |
Returns the semi-minor axis length of this ellipse. Units are in arcsec since ellipses are typically small.
def lsst.geom.geometry.SphericalEllipse.intersects | ( | self, | |
pointOrRegion | |||
) |
Returns True if the specified point or spherical region intersects this ellipse. The implementation is conservative in the sense that True may be returned for a region that does not intersect this ellipse.