Documentation / @interstellar-tools/maps / inverseSinusoidal
Function: inverseSinusoidal()
ts
function inverseSinusoidal(
x: number,
y: number,
R: number,
options?: ProjectionOptionsInterface
): GeographicCoordinatesInterface;Defined in: projections/sinusoidal.ts:122
Find the point on a sphere for a point on a sinusoidal map: the inverse of sinusoidal.
Units
- Inputs:
x,yandRin m,lambda0in radians. - Output:
{ phi, lambda }in radians, within (−π, π].
Notes
- Only points on the map have an inverse: a
ybeyond a pole, or anxbeyond the edge meridians,, 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 off the map, or
R <= 0.
Example
ts
inverseSinusoidal(1_364_551, 1_819_401, 1_737_400);
// ≈ { phi: 60° N, lambda: 90° E }, in radiansSee
- sinusoidal
- https://doi.org/10.3133/pp1395 Snyder (1987), Map projections: a working manual, ch. 30