public final class FindEdgeResult
extends java.lang.Object
SubdivisionEdge
nearest to a query point.
Immutable class containing the results of two equivalent methods,
Subdivision.findNearestEdge(org.kynosarges.tektosyne.geometry.PointD)
of the Subdivision
class and
SubdivisionFace.findNearestEdge(org.kynosarges.tektosyne.geometry.PointD)
of the SubdivisionFace
class.Modifier and Type | Field and Description |
---|---|
double |
distance
The distance to the found
SubdivisionEdge , if any. |
SubdivisionEdge |
edge
The found
SubdivisionEdge , if any. |
public final SubdivisionEdge edge
SubdivisionEdge
, if any.
The SubdivisionEdge
on any boundary of the SubdivisionFace
nearest to and
facing the query point, or null
if the SubdivisionFace
is completely unbounded.public final double distance
SubdivisionEdge
, if any.
The distance between the query point and edge
, if valid, else Double.MAX_VALUE
.