Module s2.s2loop
An S2Loop represents a simple spherical polygon.
Classes
Name | Description |
---|---|
CompareBoundaryRelation
|
Loop relation for CompareBoundary(). |
ContainsRelation
|
Loop relation for Contains(). |
IntersectsRelation
|
Loop relation for Intersects(). |
LoopCrosser
|
LoopCrosser is a helper class for determining whether two loops cross. It is instantiated twice for each pair of loops to be tested, once for the pair (A,B) and once for the pair (B,A), in order to be able to process edges in either loop nesting order. |
LoopRelation
|
LoopRelation is an abstract class that defines a relationship between two loops (Contains, Intersects, or CompareBoundary). |
RangeIterator
|
RangeIterator is a wrapper over MutableS2ShapeIndex::Iterator with extra methods that are useful for merging the contents of two or more S2ShapeIndexes. |
S2Loop
|
An S2Loop represents a simple spherical polygon. It consists of a single chain of vertices where the first vertex is implicitly connected to the last. All loops are defined to have a CCW orientation, i.e. the interior of the loop is on the left side of the edges. This implies that a clockwise loop enclosing a small area is interpreted to be a CCW loop enclosing a very large area. |