Struct GeodesicClosestIntersectionResult

Result of the globally closest intersection of two oriented geodesics.

struct GeodesicClosestIntersectionResult(T)
  
if (isGeodesyScalar!T);

Properties

NameTypeDescription
coincidence[get] GeodesicIntersectionCoincidenceCoincidence relationship of the two supporting oriented geodesics.
distanceOnFirst[get] TSigned distance from the first oriented line origin. Signed displacement from the first line origin.
distanceOnSecond[get] TSigned distance from the second oriented line origin. Signed displacement from the second line origin.
isValid[get] boolTrue when the result was produced by a successful closest search.
position[get] GeographicCoordinate!TGeographic position of the selected intersection representative. Geographic position of the enumerated intersection.
referenceDistance[get] TL1 displacement-space distance to the caller reference pair. L1 ranking distance relative to the caller reference pair.

Example

Example using the closest-intersection result type.

GeodesicClosestIntersectionResult!double result;
assert(!result.isValid);
assert(result.coincidence
    == GeodesicIntersectionCoincidence.distinct);