-
-
Notifications
You must be signed in to change notification settings - Fork 4
/
index.d.ts
41 lines (39 loc) · 1.14 KB
/
index.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
/**
* Gets the mean sea level according to the EGM96.
*
* @param latitude The latitude in degrees
* @param longitude The longitude in degrees
* @returns The mean sea level in meters, relative to the WGS84 ellipsoid.
*/
export declare function meanSeaLevel(
latitude: number,
longitude: number
): number;
/**
* Converts a WGS84's ellipsoid-relative altitude to an EGM96-relative
* altitude.
*
* @param latitude The latitude in degrees
* @param longitude The longitude in degrees
* @param altitude The altitude relative to the WGS84's ellipsoid in meters
* @returns The altitude relative to EGM96 in meters
*/
export declare function ellipsoidToEgm96(
latitude: number,
longitude: number,
altitude: number
): number;
/**
* Converts an EGM96-relative altitude to a WGS84's ellipsoid-relative
* altitude.
*
* @param latitude The latitude in degrees
* @param longitude The longitude in degrees
* @param altitude The altitude relative to EGM96 in meters
* @returns The altitude relative to the WGS84's ellipsoid in meters
*/
export declare function egm96ToEllipsoid(
latitude: number,
longitude: number,
altitude: number
): number;