Class S2Polygon.S2PolygonIndex
java.lang.Object
com.google.common.geometry.S2EdgeIndex
com.google.common.geometry.S2Polygon.S2PolygonIndex
- Enclosing class:
S2Polygon
Indexing structure for an
S2Polygon.-
Nested Class Summary
Nested classes/interfaces inherited from class S2EdgeIndex
S2EdgeIndex.DataEdgeIterator -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal com.google.common.geometry.S2Polygon.LoopVertexIndexPairdecodeIndex(int index) edgeFrom(int index) Returns the starting vertex of the edge at offsetindex.edgeFromTo(int index) Mark theS2EdgeIndex.edgeFromTo(int)method abstract again, so children of this class must implement it without usingS2EdgeIndex.edgeFrom(int)andS2EdgeIndex.edgeTo(int).edgeTo(int index) Returns the ending vertex of the edge at offsetindex.final intReturns the number of edges in this index.Methods inherited from class S2EdgeIndex
clipEdge, computeIndex, findCandidateCrossings, incrementQueryCount, isIndexComputed, predictAdditionalCalls, reset
-
Constructor Details
-
S2PolygonIndex
-
-
Method Details
-
edgeFromTo
Mark theS2EdgeIndex.edgeFromTo(int)method abstract again, so children of this class must implement it without usingS2EdgeIndex.edgeFrom(int)andS2EdgeIndex.edgeTo(int). -
decodeIndex
public final com.google.common.geometry.S2Polygon.LoopVertexIndexPair decodeIndex(int index) -
getNumEdges
public final int getNumEdges()Description copied from class:S2EdgeIndexReturns the number of edges in this index.- Specified by:
getNumEdgesin classS2EdgeIndex
-
edgeFrom
Description copied from class:S2EdgeIndexReturns the starting vertex of the edge at offsetindex.- Specified by:
edgeFromin classS2EdgeIndex
-
edgeTo
Description copied from class:S2EdgeIndexReturns the ending vertex of the edge at offsetindex.- Specified by:
edgeToin classS2EdgeIndex
-