Documentation / @interstellar-tools/maps / inverseMollweide
Function: inverseMollweide()
ts
function inverseMollweide(
x: number,
y: number,
R: number,
options?: ProjectionOptionsInterface
): GeographicCoordinatesInterface;Defined in: projections/mollweide.ts:169
Find the point on a sphere for a point on a Mollweide map: the inverse of mollweide.
Units
- Inputs:
x,yandRin m,lambda0in radians. - Output:
{ phi, lambda }in radians, within (−π, π].
Notes
- No iteration is needed this way round. Within about
rad of a pole, of a number so close to 1 limits to about rad. - Only points inside the ellipse have an inverse: a point outside it throws a
RangeError. - Every longitude meets at a pole, so there
is .
Parameters
| Parameter | Type | Description |
|---|---|---|
x | number | Distance east of the origin in m (finite, on the map). |
y | number | Distance north of the origin in m (finite, on the map). |
R | number | Radius |
options? | ProjectionOptionsInterface | lambda0, the central meridian (radians, defaults to 0). |
Returns
GeographicCoordinatesInterface
The point on the sphere, { phi, lambda } in radians.
Throws
- If any input is not a finite number.
- If the point is outside the map's ellipse, or
R <= 0.
Example
ts
inverseMollweide(2 * Math.SQRT2, 0, 1); // { phi: 0, lambda: π }See
- mollweide
- https://doi.org/10.3133/pp1395 Snyder (1987), Map projections: a working manual, ch. 31