Skip to content

Documentation / @interstellar-tools/equations / flatteningOblateSpheroid

Function: flatteningOblateSpheroid() ​

ts
function flatteningOblateSpheroid(a: number, c: number): number;

Defined in: cartography/flattening-oblate-spheroid.ts:39

Compute flattening (f) of an oblate spheroid.

Flattening quantifies how much an ellipsoid of revolution is "squashed" at the poles, using equatorial radius (a) and polar radius (c):

f=a−ca

Notes:

  • (f) is dimensionless.
  • For a physically valid oblate spheroid with (a≥c>0), (0≤f<1).
  • Commonly used in geodesy/cartography (e.g., defining reference ellipsoids and deriving related parameters like eccentricity).

Parameters ​

ParameterTypeDescription
anumberEquatorial radius (a) (finite, > 0).
cnumberPolar radius (c) (finite, > 0).

Returns ​

number

Flattening (f) (dimensionless).

Throws ​

If a or c is not a finite number.

Throws ​

If a <= 0 or c <= 0.

Example ​

ts
// Earth (WGS84-ish radii in meters):
const a = 6378137.0;
const c = 6356752.314245;
const f = flatteningOblateSpheroid(a, c);

See ​