protected class FreeformTool.DistanceQuery extends Object
seg
the segment on which the closest point
lies, between nodes seg and seg+1 wt
the relative distance
along the segment where the closest point lies, between 0.0 and 1.0Modifier and Type | Field and Description |
---|---|
double |
dist
The distance to the freeform.
|
OverlayFreeform |
freeform
The nearest freeform itself.
|
int |
seg
The index of the first node of the closest segment.
|
double |
wt
The weight, between 0.0 and 1.0, representing the relative distance along
the segment (seg, seg+1) that must be traveled from the node at index seg
to reach the closest point on the curve.
|
Constructor and Description |
---|
DistanceQuery(double[] distSegWt,
OverlayFreeform f)
Constructs a DistanceQuery object.
|
Modifier and Type | Method and Description |
---|---|
boolean |
isNearEndNode()
Whether the nearest node is an end node.
|
public int seg
public double wt
public double dist
public OverlayFreeform freeform
public DistanceQuery(double[] distSegWt, OverlayFreeform f)
Copyright © 2015–2022 SciJava. All rights reserved.