public final class Line2D extends EdgeTree
Line Line2D Construction takes O(n log n) time for sorting and tree construction.
relate() are O(n), but for most practical lines are much faster than brute force.
| Modifier and Type | Method and Description |
|---|---|
protected PointValues.Relation |
componentRelate(double minLat,
double maxLat,
double minLon,
double maxLon) |
protected PointValues.Relation |
componentRelateTriangle(double ax,
double ay,
double bx,
double by,
double cx,
double cy) |
static Line2D |
create(Line... lines)
create a Line2D edge tree from provided array of Linestrings
|
static Line2D |
create(XYLine... lines)
create a Line2D edge tree from provided array of Linestrings
|
createTree, internalComponentRelate, pointInTriangle, relate, relateTrianglepublic static Line2D create(Line... lines)
public static Line2D create(XYLine... lines)
protected PointValues.Relation componentRelate(double minLat, double maxLat, double minLon, double maxLon)
componentRelate in class EdgeTreeprotected PointValues.Relation componentRelateTriangle(double ax, double ay, double bx, double by, double cx, double cy)
componentRelateTriangle in class EdgeTreeCopyright © 2000-2019 Apache Software Foundation. All Rights Reserved.