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
Indexing structure for an
S2Polygon
.-
Nested Class Summary
Nested classes/interfaces inherited from class com.google.common.geometry.S2EdgeIndex
S2EdgeIndex.DataEdgeIterator
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionS2PolygonIndex
(S2Polygon poly) S2PolygonIndex
(S2Polygon poly, boolean reverse) -
Method Summary
Modifier and TypeMethodDescriptionedgeFromTo
(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 Details
-
poly
-
reverse
private final boolean reverse
-
-
Constructor Details
-
S2PolygonIndex
-
S2PolygonIndex
S2PolygonIndex(S2Polygon poly, boolean reverse)
-
-
Method Details
-
getVertices
Returns number of vertices per loop. -
edgeFromTo
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
-