Struct GeodesicNextIntersectionResult
Result of the next intersection after a known common-origin crossing.
struct GeodesicNextIntersectionResult(T)
if (isGeodesyScalar!T);
The two signed distances are measured from the known intersection along the oriented input geodesics. displacementDistance is the L1 ranking value abs(x) + abs(y).
If multiple next intersections have the same minimum rank, this operation returns one deterministic representative but does not claim uniqueness. Use the future all-intersections API (#106) when all tied solutions are required.
.init is invalid.
Properties
| Name | Type | Description |
|---|---|---|
coincidence[get]
|
GeodesicIntersectionCoincidence | Coincidence relationship of the two supporting geodesics. Coincidence relationship of the supporting geodesics. |
displacementDistance[get]
|
T | Minimum nonzero L1 displacement rank. |
distanceOnFirst[get]
|
T | Signed distance from the known crossing along the first geodesic. |
distanceOnSecond[get]
|
T | Signed distance from the known crossing along the second geodesic. |
isValid[get]
|
bool | True when the next-intersection search succeeded. |
position[get]
|
GeographicCoordinate!T | Geographic position of the selected next intersection. |
Example
Example using the next-intersection result type.
GeodesicNextIntersectionResult!double result;
assert(!result .isValid);