LSSTApplications
12.1-5-gbdcc3ab,15.0+10,15.0+19,15.0-1-g19261fa+10,15.0-1-g60afb23+19,15.0-1-g615e0bb+11,15.0-1-g6668b0b+6,15.0-1-g788a293+19,15.0-1-ga91101e+19,15.0-1-gae1598d+9,15.0-1-gd076f1f+17,15.0-1-gdf18595+3,15.0-1-gf4f1c34+9,15.0-10-g113cadf7+2,15.0-11-g5674e3b,15.0-2-g100d730+12,15.0-2-g20c4630+8,15.0-2-g35685a8+15,15.0-2-g5dfaa72+8,15.0-2-gf38729e+14,15.0-24-g02ed2a30c+2,15.0-3-g11fe1a0+3,15.0-3-g130a88a+2,15.0-3-g707930d+1,15.0-3-g9103c06+9,15.0-3-ga03b4ca+26,15.0-3-gaec6799+6,15.0-4-g32c2b40+2,15.0-4-g535e784+3,15.0-4-g654b129+17,15.0-5-g23e394c+7,15.0-5-g54bfcd9+2,15.0-5-gb31927c,15.0-6-g4418537+2,15.0-7-g0c26201,15.0-7-g6bb3a066+2,15.0-9-g5661f8f+4,w.2018.18
LSSTDataManagementBasePackage
|
Public Member Functions | |
def | __init__ (self, args) |
def | getVertices (self) |
def | getEdges (self) |
def | getBoundingCircle (self) |
def | getBoundingBox (self) |
def | getZRange (self) |
def | clip (self, plane) |
def | intersect (self, poly) |
def | area (self) |
def | containsPoint (self, v) |
def | contains (self, pointOrRegion) |
def | intersects (self, pointOrRegion) |
def | __repr__ (self) |
def | __eq__ (self, other) |
def | __hash__ (self) |
Public Attributes | |
boundingBox | |
boundingCircle | |
vertices | |
edges | |
A convex polygon on the unit sphere with great circle edges. Points falling exactly on polygon edges are considered to be inside (contained by) the polygon.
Definition at line 1110 of file geometry.py.
def lsst.geom.geometry.SphericalConvexPolygon.__init__ | ( | self, | |
args | |||
) |
Creates a new polygon. Arguments must be either: 1. a SphericalConvexPolygon 2. a list of vertices 3. a list of vertices and a list of corresponding edges In the first case, a copy is constructed. In the second case, the argument must be a sequence of 3 element tuples/lists (unit cartesian 3-vectors) - a copy of the vertices is stored and polygon edges are computed. In the last case, copies of the input vertex and edge lists are stored. Vertices must be hemispherical and in counter-clockwise order when viewed from outside the unit sphere in a right handed coordinate system. They must also form a convex polygon. When edges are specified, the i-th edge must correspond to the plane equation of great circle connecting vertices (i - 1, i), that is, the edge should be a unit cartesian 3-vector parallel to v[i-1] ^ v[i] (where ^ denotes the vector cross product). Note that these conditions are NOT verified for performance reasons. Operations on SphericalConvexPolygon objects constructed with inputs not satisfying these conditions are undefined. Use the convex() function to check for convexity and ordering of the vertices. Or, use the convexHull() function to create a SphericalConvexPolygon from an arbitrary list of hemispherical input vertices.
Definition at line 1116 of file geometry.py.
def lsst.geom.geometry.SphericalConvexPolygon.__eq__ | ( | self, | |
other | |||
) |
Definition at line 1456 of file geometry.py.
def lsst.geom.geometry.SphericalConvexPolygon.__hash__ | ( | self | ) |
Definition at line 1476 of file geometry.py.
def lsst.geom.geometry.SphericalConvexPolygon.__repr__ | ( | self | ) |
Returns a string representation of this polygon.
Definition at line 1450 of file geometry.py.
def lsst.geom.geometry.SphericalConvexPolygon.area | ( | self | ) |
def lsst.geom.geometry.SphericalConvexPolygon.clip | ( | self, | |
plane | |||
) |
Returns the polygon corresponding to the intersection of this polygon with the positive half space defined by the given plane. The plane must be specified with a cartesian unit vector (its normal) and always passes through the origin. Clipping is performed using the Sutherland-Hodgman algorithm, adapted for spherical polygons.
Definition at line 1220 of file geometry.py.
def lsst.geom.geometry.SphericalConvexPolygon.contains | ( | self, | |
pointOrRegion | |||
) |
Returns True if the specified point or spherical region is completely contained in this polygon. Note that the implementation is conservative where ellipses are concerned: False may be returned for an ellipse that is actually completely contained by this polygon.
Definition at line 1333 of file geometry.py.
def lsst.geom.geometry.SphericalConvexPolygon.containsPoint | ( | self, | |
v | |||
) |
Definition at line 1327 of file geometry.py.
def lsst.geom.geometry.SphericalConvexPolygon.getBoundingBox | ( | self | ) |
Returns a bounding box for this spherical convex polygon.
Definition at line 1202 of file geometry.py.
def lsst.geom.geometry.SphericalConvexPolygon.getBoundingCircle | ( | self | ) |
Returns a bounding circle (not necessarily minimal) for this spherical convex polygon.
Definition at line 1190 of file geometry.py.
def lsst.geom.geometry.SphericalConvexPolygon.getEdges | ( | self | ) |
Returns the list of polygon edges. The i-th edge is the plane equation for the great circle edge formed by vertices i-1 and i.
Definition at line 1184 of file geometry.py.
def lsst.geom.geometry.SphericalConvexPolygon.getVertices | ( | self | ) |
Returns the list of polygon vertices.
Definition at line 1179 of file geometry.py.
def lsst.geom.geometry.SphericalConvexPolygon.getZRange | ( | self | ) |
Returns the z coordinate range spanned by this spherical convex polygon.
Definition at line 1212 of file geometry.py.
def lsst.geom.geometry.SphericalConvexPolygon.intersect | ( | self, | |
poly | |||
) |
Returns the intersection of poly with this polygon, or None if the intersection does not exist.
Definition at line 1301 of file geometry.py.
def lsst.geom.geometry.SphericalConvexPolygon.intersects | ( | self, | |
pointOrRegion | |||
) |
Returns True if the given point or spherical region intersects this polygon. Note that the implementation is conservative where ellipses are concerned: True may be returned for an ellipse that is actually disjoint from this polygon.
Definition at line 1406 of file geometry.py.
lsst.geom.geometry.SphericalConvexPolygon.boundingBox |
Definition at line 1145 of file geometry.py.
lsst.geom.geometry.SphericalConvexPolygon.boundingCircle |
Definition at line 1146 of file geometry.py.
lsst.geom.geometry.SphericalConvexPolygon.edges |
Definition at line 1152 of file geometry.py.
lsst.geom.geometry.SphericalConvexPolygon.vertices |
Definition at line 1151 of file geometry.py.