|
LSSTApplications
8.0.0.0+107,8.0.0.1+13,9.1+18,9.2,master-g084aeec0a4,master-g0aced2eed8+6,master-g15627eb03c,master-g28afc54ef9,master-g3391ba5ea0,master-g3d0fb8ae5f,master-g4432ae2e89+36,master-g5c3c32f3ec+17,master-g60f1e072bb+1,master-g6a3ac32d1b,master-g76a88a4307+1,master-g7bce1f4e06+57,master-g8ff4092549+31,master-g98e65bf68e,master-ga6b77976b1+53,master-gae20e2b580+3,master-gb584cd3397+53,master-gc5448b162b+1,master-gc54cf9771d,master-gc69578ece6+1,master-gcbf758c456+22,master-gcec1da163f+63,master-gcf15f11bcc,master-gd167108223,master-gf44c96c709
LSSTDataManagementBasePackage
|
Public Member Functions | |
| def | __init__ |
| def | getVertices |
| def | getEdges |
| def | getBoundingCircle |
| def | getBoundingBox |
| def | getZRange |
| def | clip |
| def | intersect |
| def | area |
| def | containsPoint |
| def | contains |
| def | intersects |
| def | __repr__ |
| def | __eq__ |
Public Attributes | |
| boundingBox | |
| boundingCircle | |
| vertices | |
| edges | |
Private Member Functions | |
| def | _computeEdges |
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 1075 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 1080 of file geometry.py.
| def lsst.geom.geometry.SphericalConvexPolygon.__eq__ | ( | self, | |
| other | |||
| ) |
Definition at line 1417 of file geometry.py.
| def lsst.geom.geometry.SphericalConvexPolygon.__repr__ | ( | self | ) |
|
private |
Computes edge plane normals from vertices.
Definition at line 1133 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 1184 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 1294 of file geometry.py.
| def lsst.geom.geometry.SphericalConvexPolygon.containsPoint | ( | self, | |
| v | |||
| ) |
| def lsst.geom.geometry.SphericalConvexPolygon.getBoundingBox | ( | self | ) |
Returns a bounding box for this spherical convex polygon.
Definition at line 1166 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 1154 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 1148 of file geometry.py.
| def lsst.geom.geometry.SphericalConvexPolygon.getVertices | ( | self | ) |
| def lsst.geom.geometry.SphericalConvexPolygon.getZRange | ( | self | ) |
Returns the z coordinate range spanned by this spherical convex polygon.
Definition at line 1176 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 1262 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 1367 of file geometry.py.
| lsst.geom.geometry.SphericalConvexPolygon.boundingBox |
Definition at line 1109 of file geometry.py.
| lsst.geom.geometry.SphericalConvexPolygon.boundingCircle |
Definition at line 1110 of file geometry.py.
| lsst.geom.geometry.SphericalConvexPolygon.edges |
Definition at line 1116 of file geometry.py.
| lsst.geom.geometry.SphericalConvexPolygon.vertices |
Definition at line 1115 of file geometry.py.
1.8.5