Package com.google.common.geometry
Class S2EdgeQuery.ShapeEdges
- java.lang.Object
-
- com.google.common.geometry.S2EdgeQuery.ShapeEdges
-
- All Implemented Interfaces:
S2EdgeQuery.Edges
- Enclosing class:
- S2EdgeQuery
public static final class S2EdgeQuery.ShapeEdges extends java.lang.Object implements S2EdgeQuery.Edges
AnEdges
that contains all the edges of a shape with the given number of edges.
-
-
Constructor Summary
Constructors Constructor Description ShapeEdges(int numEdges)
-
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.
-
-
-
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
-
-