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
An
Edges
that contains all the edges of a shape with the given number of edges.-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
edgeIndex
private int edgeIndex -
numEdges
private final int numEdges
-
-
Constructor Details
-
ShapeEdges
ShapeEdges(int numEdges)
-
-
Method Details
-
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
-