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
An
Edges
implementation that includes all the edges of a clipped shape.-
Field Summary
FieldsModifier and TypeFieldDescription(package private) int
(package private) final S2ShapeIndex.S2ClippedShape
-
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
index
int index -
shape
-
-
Constructor Details
-
SimpleEdges
SimpleEdges(S2ShapeIndex.S2ClippedShape shape)
-
-
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
-