Package com.google.common.geometry
Class S2EdgeQuery.CrossingFilter
java.lang.Object
com.google.common.geometry.S2EdgeQuery.CrossingFilter
- All Implemented Interfaces:
S2EdgeQuery.Edges
- Enclosing class:
S2EdgeQuery
An Edges implementation that filters edges of a shape to those that intersect the edge AB or
have an endpoint on either A or B.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final S2EdgeUtil.EdgeCrosserprivate final S2Shape.MutableEdgeprivate final S2EdgeQuery.Edgesprivate intprivate final S2Shape -
Constructor Summary
ConstructorsConstructorDescriptionCrossingFilter(S2Shape shape, S2EdgeQuery.Edges edges, S2Point a0, S2Point a1) -
Method Summary
-
Field Details
-
shape
-
edges
-
crosser
-
edge
-
nextEdge
private int nextEdge
-
-
Constructor Details
-
CrossingFilter
CrossingFilter(S2Shape shape, S2EdgeQuery.Edges edges, S2Point a0, S2Point a1)
-
-
Method Details
-
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
-
checkPosition
private void checkPosition()
-