Package com.google.common.geometry
Class S2EdgeQuery.SimpleEdges
- java.lang.Object
-
- com.google.common.geometry.S2EdgeQuery.SimpleEdges
-
- All Implemented Interfaces:
S2EdgeQuery.Edges
- Enclosing class:
- S2EdgeQuery
private static final class S2EdgeQuery.SimpleEdges extends java.lang.Object implements S2EdgeQuery.Edges
AnEdgesimplementation that includes all the edges of a clipped shape.
-
-
Field Summary
Fields Modifier and Type Field Description (package private) intindex(package private) S2ShapeIndex.S2ClippedShapeshape
-
Constructor Summary
Constructors Constructor Description SimpleEdges(S2ShapeIndex.S2ClippedShape shape)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanisEmpty()Returns true if there are no more edges.intnextEdge()Returns the next edge ID, or throws an exception if empty.
-
-
-
Field Detail
-
index
int index
-
shape
final S2ShapeIndex.S2ClippedShape shape
-
-
Constructor Detail
-
SimpleEdges
SimpleEdges(S2ShapeIndex.S2ClippedShape shape)
-
-
Method Detail
-
nextEdge
public int nextEdge()
Description copied from interface:S2EdgeQuery.EdgesReturns the next edge ID, or throws an exception if empty.- Specified by:
nextEdgein interfaceS2EdgeQuery.Edges
-
isEmpty
public boolean isEmpty()
Description copied from interface:S2EdgeQuery.EdgesReturns true if there are no more edges.- Specified by:
isEmptyin interfaceS2EdgeQuery.Edges
-
-