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
AnEdges
implementation that includes all the edges of a clipped shape.
-
-
Field Summary
Fields Modifier and Type Field Description (package private) int
index
(package private) S2ShapeIndex.S2ClippedShape
shape
-
Constructor Summary
Constructors Constructor Description SimpleEdges(S2ShapeIndex.S2ClippedShape shape)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
isEmpty()
Returns true if there are no more edges.int
nextEdge()
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.Edges
Returns the next edge ID, or throws an exception if empty.- Specified by:
nextEdge
in interfaceS2EdgeQuery.Edges
-
isEmpty
public boolean isEmpty()
Description copied from interface:S2EdgeQuery.Edges
Returns true if there are no more edges.- Specified by:
isEmpty
in interfaceS2EdgeQuery.Edges
-
-