Function EqualEarth.tryFromParameters
Try to prepare the supported sphere/oblate Equal Earth projection.
static bool tryFromParameters(
const Ellipsoid!T ellipsoid,
const Longitude!T centralMeridian,
const T falseEasting,
const T falseNorthing,
out EqualEarth result
) pure nothrow @nogc @safe;
Example
Example
prepare a WGS 84 Equal Earth projection without throwing.
import geodesy .ellipsoid : wgs84;
EqualEarth!double projection;
assert(EqualEarth!double .tryFromParameters(
wgs84!double(), Longitude!double .fromDegrees(0),
0.0, 0.0, projection));