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.EdgeCrosser
private final S2Shape.MutableEdge
private final S2EdgeQuery.Edges
private int
private 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.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
-
checkPosition
private void checkPosition()
-