public class NearestEdgeResult extends Object
Constructor and Description |
---|
NearestEdgeResult(IQuadEdge edge,
double edgeD,
double queryX,
double queryY,
boolean interior)
Standard constructor.
|
Modifier and Type | Method and Description |
---|---|
double |
getDistanceToEdge()
Gets the distance from the query point to the nearest edge.
|
double |
getDistanceToNearestVertex()
Gets the distance from the query point to the nearest vertex.
|
IQuadEdge |
getEdge()
Gets the edge that is nearest to the query point.
|
Vertex |
getNearestVertex()
Gets the vertex nearest the query point.
|
double |
getX()
Get the X coordinate of the query point
|
double |
getY()
Get the Y coordinate of the query point
|
boolean |
isInterior()
Indicates whether the query point was inside the convex polygon boundary of
the TIN.
|
public NearestEdgeResult(IQuadEdge edge, double edgeD, double queryX, double queryY, boolean interior)
edge
- the edge that starts with the vertex nearest (x,y)edgeD
- the distance of the query point to the edgequeryX
- the X coordinate for the query pointqueryY
- the Y coordinate for the query pointinterior
- indicates that the query point is inside the TIN boundary,public IQuadEdge getEdge()
If the query point is in the interior of the TIN, it will lie either on the edge or inside the triangle to the left of the edge.
public double getDistanceToEdge()
public Vertex getNearestVertex()
public double getDistanceToNearestVertex()
public double getX()
public double getY()
public boolean isInterior()
Copyright © 2021. All rights reserved.