Struct GeodesicSegmentNearestResult
Result of nearest-point evaluation on a bounded geodesic segment.
struct GeodesicSegmentNearestResult(T)
if (isGeodesyScalar!T);
nearestPoint and nearestDistance belong to the finite segment.
supportingFoot, alongTrack, and signedCrossTrack belong to the
local oriented supporting geodesic through A->B.
is invalid.
Properties
| Name | Type | Description |
|---|---|---|
alongTrack[get]
|
T | Signed distance from A to supportingFoot along the A->B geodesic.
|
isValid[get]
|
bool | True for a successfully computed nearest-point result. |
kind[get]
|
GeodesicSegmentNearestKind | Whether the bounded nearest point is A, interior, or B. |
nearestDistance[get]
|
T | Unsigned distance from target to nearestPoint.
|
nearestPoint[get]
|
GeographicCoordinate!T | True nearest point on the bounded segment. |
signedCrossTrack[get]
|
T | Signed perpendicular distance from the supporting geodesic to target. |
supportingFoot[get]
|
GeographicCoordinate!T | Local perpendicular intercept on the oriented supporting geodesic. |
Example
Example using the nearest-result type.
GeodesicSegmentNearestResult!double result;
assert(!result .isValid);