Function wgs84

WGS 84 reference ellipsoid, parameterized to the requested floating-point scalar.

Ellipsoid!T wgs84(T)() pure nothrow @nogc @safe
if (isGeodesyScalar!T);

The semi-major axis is 6,378,137 metres and the inverse flattening is 298.257223563. Therefore values combined with this supplied ellipsoid use metres for their linear coordinates.

Returns

A valid WGS 84 Ellipsoid!T.

Example

Example obtaining the supplied WGS 84 ellipsoid.

import geodesy;
const earth = wgs84!double();
assert(earth.semiMajorAxis == 6_378_137.0);