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.
is invalid.
Properties
| Name | Type | Description |
|---|---|---|
firstPoint[get]
|
GeographicCoordinate!T | Point intersection or first overlap endpoint. |
isValid[get]
|
bool | True when the operation produced a valid geometric result. |
kind[get]
|
GeodesicSegmentIntersectionKind | Geometric intersection classification. |
secondPoint[get]
|
GeographicCoordinate!T | Point 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);