Skip to content

Documentation / @interstellar-tools/equations / primeVerticalRadiusOfCurvature

Function: primeVerticalRadiusOfCurvature() ​

ts
function primeVerticalRadiusOfCurvature(
  phi: Radians,
  a: number,
  eSquared: number
): number;

Defined in: cartography/prime-vertical-radius-of-curvature.ts:64

Compute the prime vertical radius of curvature N of an oblate spheroid at a geodetic latitude.

N=a1−e2sin2⁡φ

Where:

  • φ is the geodetic latitude (rad)
  • a is the equatorial radius (m) and e2 the first eccentricity squared

Units

  • Inputs: phi in radians, a in m, eSquared dimensionless.
  • Output: N in m.

Notes

  • The radius of the curve the surface makes east–west, at right angles to the meridian. A step Δλ in longitude covers Ncos⁡φΔλ along the parallel.
  • N is also the distance along the normal from the surface to the rotation axis; geodeticToBodyFixed uses it.
  • It runs from a at the equator to a/1−e2 at the poles, and is never smaller than the meridional radius meridionalRadiusOfCurvature.
In practiceApollo 11, on Pad 39A

97.80 km

One degree of longitude at 28.608° N on WGS 84, from N = 6 383.0 km

At the equator, a degree of longitude is 111.32 km. A degree of latitude at the pad is 110.83 km (see meridionalRadiusOfCurvature).

ts
const N = primeVerticalRadiusOfCurvature(
  toRad(28.608422),
  6_378_137,
  0.00669437999014
);
N * Math.cos(toRad(28.608422)) * (Math.PI / 180); // ≈ 97 804 m

Parameters ​

ParameterTypeDescription
phiRadiansGeodetic latitude φ in radians (finite, in [-π/2, π/2]).
anumberEquatorial radius a in m (finite, > 0).
eSquarednumberFirst eccentricity squared e2 (finite, in [0, 1)).

Returns ​

number

The prime vertical radius of curvature N in m.

Throws ​

  • If any input is not a finite number.
  • If phi is outside [-π/2, π/2], a <= 0, or eSquared is outside [0, 1).

Example ​

ts
import type { Radians } from '@interstellar-tools/types';

// At the poles, N = a / √(1 − e²)
primeVerticalRadiusOfCurvature(
  (Math.PI / 2) as Radians,
  6_378_137,
  0.00669437999014
);
// ≈ 6 399 594 m

See ​