Loop relation for CompareBoundary().
Loop relation for Contains().
Loop relation for Intersects().
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 is an abstract class that defines a relationship between two loops (Contains, Intersects, or CompareBoundary).
RangeIterator is a wrapper over MutableS2ShapeIndex::Iterator with extra methods that are useful for merging the contents of two or more S2ShapeIndexes.
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.
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.
2005 Google Inc. All Rights Reserved.
An S2Loop represents a simple spherical polygon.