Struct GeodesicIntersectionSolver

Prepared ellipsoid-dependent state for repeated geodesic intersections.

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

Construction performs the invariant setup required by the intersection family once. In particular, ellipsoid-dependent next-intersection spacing is prepared here instead of being recomputed for every pair of lines.

The prepared value is immutable-by-convention after construction and can be reused across independent line pairs. One-shot overloads remain available for occasional calls and use the same mathematical kernels.

.init is invalid.

Properties

NameTypeDescription
isValid[get] boolTrue when invariant intersection-family setup was prepared successfully.

Methods

NameDescription
tryFromGeodesic (solver, result) Prepare reusable invariant state for the oriented-intersection family.

Example

Example using reusable intersection-family state.

GeodesicIntersectionSolver!double prepared;
assert(!prepared.isValid);