public class EdgeTree extends Object
low
, which is the minimum latitude of the edge.
max
stores the maximum latitude of this edge or any children.Modifier and Type | Method and Description |
---|---|
protected boolean |
contains(double x,
double y)
Returns true if the point is on an edge or crosses the edge subtree an odd number
of times.
|
protected static EdgeTree |
createTree(double[] x,
double[] y)
Creates an edge interval tree from a set of geometry vertices.
|
protected boolean |
crossesBox(double minX,
double maxX,
double minY,
double maxY,
boolean includeBoundary)
Returns true if the box crosses any edge in this edge subtree
|
protected boolean |
crossesLine(double minX,
double maxX,
double minY,
double maxY,
double a2x,
double a2y,
double b2x,
double b2y)
Returns true if the line crosses any edge in this edge subtree
|
protected boolean |
crossesTriangle(double minX,
double maxX,
double minY,
double maxY,
double ax,
double ay,
double bx,
double by,
double cx,
double cy,
boolean includeBoundary)
Returns true if the triangle crosses any edge in this edge subtree
|
protected boolean |
isPointOnLine(double x,
double y)
returns true if the provided x, y point lies on the line
|
protected boolean contains(double x, double y)
protected boolean isPointOnLine(double x, double y)
protected boolean crossesTriangle(double minX, double maxX, double minY, double maxY, double ax, double ay, double bx, double by, double cx, double cy, boolean includeBoundary)
protected boolean crossesBox(double minX, double maxX, double minY, double maxY, boolean includeBoundary)
protected boolean crossesLine(double minX, double maxX, double minY, double maxY, double a2x, double a2y, double b2x, double b2y)
protected static EdgeTree createTree(double[] x, double[] y)
Copyright © 2000-2019 Apache Software Foundation. All Rights Reserved.