Struct GeodesicSegmentIntersectionResult

Result of intersecting two bounded shortest ellipsoidal geodesic segments.

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

For none, no point properties are meaningful. For point, firstPoint == secondPoint. For overlap, the two points are the endpoints of the common bounded interval, ordered along the first input segment.

.init is invalid.

Properties

NameTypeDescription
firstPoint[get] GeographicCoordinate!TPoint intersection or first overlap endpoint.
isValid[get] boolTrue when the operation produced a valid geometric result.
kind[get] GeodesicSegmentIntersectionKindGeometric intersection classification.
secondPoint[get] GeographicCoordinate!TPoint intersection or second overlap endpoint.

Example

Example using the bounded segment-intersection result type.

GeodesicSegmentIntersectionResult!double result;
assert(!result.isValid);
assert(result.kind == GeodesicSegmentIntersectionKind.invalid);