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
private static final class S2EdgeQuery.CrossingFilter extends java.lang.Object implements S2EdgeQuery.Edges
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
Fields Modifier and Type Field Description private S2EdgeUtil.EdgeCrosser
crosser
private S2Shape.MutableEdge
edge
private S2EdgeQuery.Edges
edges
private int
nextEdge
private S2Shape
shape
-
Constructor Summary
Constructors Constructor Description CrossingFilter(S2Shape shape, S2EdgeQuery.Edges edges, S2Point a0, S2Point a1)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private void
checkPosition()
boolean
isEmpty()
Returns true if there are no more edges.int
nextEdge()
Returns the next edge ID, or throws an exception if empty.
-
-
-
Field Detail
-
shape
private final S2Shape shape
-
edges
private final S2EdgeQuery.Edges edges
-
crosser
private final S2EdgeUtil.EdgeCrosser crosser
-
edge
private final S2Shape.MutableEdge edge
-
nextEdge
private int nextEdge
-
-
Constructor Detail
-
CrossingFilter
CrossingFilter(S2Shape shape, S2EdgeQuery.Edges edges, S2Point a0, S2Point a1)
-
-
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
-
checkPosition
private void checkPosition()
-
-