nextGeodesicIntersection - multiple declarations
Function nextGeodesicIntersection
Throwing prepared-line next-intersection operation.
GeodesicNextIntersectionResult!T nextGeodesicIntersection(T)(
const Geodesic!T solver,
const GeodesicLine!T firstLine,
const GeodesicLine!T secondLine
) @safe
if (isGeodesyScalar!T);
Function nextGeodesicIntersection
Throwing prepared-state next-intersection operation for prepared lines.
GeodesicNextIntersectionResult!T nextGeodesicIntersection(T)(
const GeodesicIntersectionSolver!T intersector,
const GeodesicLine!T firstLine,
const GeodesicLine!T secondLine
) @safe
if (isGeodesyScalar!T);
Function nextGeodesicIntersection
Throwing prepared-state next-intersection operation for a known crossing.
GeodesicNextIntersectionResult!T nextGeodesicIntersection(T)(
const GeodesicIntersectionSolver!T intersector,
const GeographicCoordinate!T knownIntersection,
const Angle!T firstAzimuth,
const Angle!T secondAzimuth
) @safe
if (isGeodesyScalar!T);
Function nextGeodesicIntersection
Throwing common-origin/azimuth next-intersection operation.
GeodesicNextIntersectionResult!T nextGeodesicIntersection(T)(
const Geodesic!T solver,
const GeographicCoordinate!T knownIntersection,
const Angle!T firstAzimuth,
const Angle!T secondAzimuth
) @safe
if (isGeodesyScalar!T);
Example
Example finding the next intersection with the throwing convenience API.
const solver =
Geodesic!double .fromEllipsoid(
wgs84!double());
const known =
GeographicCoordinate!double .fromComponents(
Latitude!double .fromDegrees(0.0),
Longitude!double .fromDegrees(0.0));
const result =
nextGeodesicIntersection(
solver,
known,
Angle!double .fromDegrees(30.0),
Angle!double .fromDegrees(120.0));
assert(result .isValid);