Package com.google.common.geometry
Class S2Polygon.S2PolygonIndex
- java.lang.Object
-
- com.google.common.geometry.S2EdgeIndex
-
- com.google.common.geometry.S2Polygon.S2LoopSequenceIndex
-
- com.google.common.geometry.S2Polygon.S2PolygonIndex
-
- Enclosing class:
- S2Polygon
public static final class S2Polygon.S2PolygonIndex extends S2Polygon.S2LoopSequenceIndex
Indexing structure for anS2Polygon
.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.google.common.geometry.S2EdgeIndex
S2EdgeIndex.DataEdgeIterator
-
-
Constructor Summary
Constructors Constructor Description S2PolygonIndex(S2Polygon poly)
S2PolygonIndex(S2Polygon poly, boolean reverse)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description S2Edge
edgeFromTo(int index)
Mark theS2Polygon.S2LoopSequenceIndex.edgeFromTo(int)
method abstract again, so children of this class must implement it without usingS2Polygon.S2LoopSequenceIndex.edgeFrom(int)
andS2Polygon.S2LoopSequenceIndex.edgeTo(int)
.private static int[]
getVertices(S2Polygon poly)
Returns number of vertices per loop.-
Methods inherited from class com.google.common.geometry.S2Polygon.S2LoopSequenceIndex
decodeIndex, edgeFrom, edgeTo, getNumEdges
-
Methods inherited from class com.google.common.geometry.S2EdgeIndex
clipEdge, computeIndex, findCandidateCrossings, incrementQueryCount, isIndexComputed, predictAdditionalCalls, reset
-
-
-
-
Field Detail
-
poly
private final S2Polygon poly
-
reverse
private final boolean reverse
-
-
Method Detail
-
getVertices
private static int[] getVertices(S2Polygon poly)
Returns number of vertices per loop.
-
edgeFromTo
public S2Edge edgeFromTo(int index)
Description copied from class:S2Polygon.S2LoopSequenceIndex
Mark theS2Polygon.S2LoopSequenceIndex.edgeFromTo(int)
method abstract again, so children of this class must implement it without usingS2Polygon.S2LoopSequenceIndex.edgeFrom(int)
andS2Polygon.S2LoopSequenceIndex.edgeTo(int)
.- Specified by:
edgeFromTo
in classS2Polygon.S2LoopSequenceIndex
-
-