s2.s2loop

An S2Loop represents a simple spherical polygon.

Members

Classes

CompareBoundaryRelation
class CompareBoundaryRelation

Loop relation for CompareBoundary().

ContainsRelation
class ContainsRelation

Loop relation for Contains().

IntersectsRelation
class IntersectsRelation

Loop relation for Intersects().

LoopCrosser
class 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
class LoopRelation

LoopRelation is an abstract class that defines a relationship between two loops (Contains, Intersects, or CompareBoundary).

RangeIterator
class RangeIterator

RangeIterator is a wrapper over MutableS2ShapeIndex::Iterator with extra methods that are useful for merging the contents of two or more S2ShapeIndexes.

S2Loop
class 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.

Variables

LAZY_INDEXING
enum bool LAZY_INDEXING;
Undocumented in source.

Meta

License

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS-IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Authors

ericv@google.com (Eric Veach), madric@gmail.com (Vijay Nayar)