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

NameTypeDescription
coincidence[get] GeodesicIntersectionCoincidenceCoincidence relationship of the two supporting geodesics. Coincidence relationship of the supporting geodesics.
displacementDistance[get] TMinimum nonzero L1 displacement rank.
distanceOnFirst[get] TSigned distance from the known crossing along the first geodesic.
distanceOnSecond[get] TSigned distance from the known crossing along the second geodesic.
isValid[get] boolTrue when the next-intersection search succeeded.
position[get] GeographicCoordinate!TGeographic position of the selected next intersection.

Example

Example using the next-intersection result type.

GeodesicNextIntersectionResult!double result;
assert(!result.isValid);