aviation-math
Version:
Different methods to calculate distances, bearing and projections for aviation related software
18 lines (17 loc) • 527 B
TypeScript
import { DegreesTrue } from "./common";
import { Position } from "./position";
/**
* Measure the bearing from one position to another
*
* @example
* let bearing = getBearing(
* new Position(39.778889, -104.9825),
* new Position(43.778889, -102.9825)
* );
* // bearing = 19.7875...
*
* @param from Position where to get the bearing from
* @param to Position where to get the bearing to
* @returns The bearing in true degrees
*/
export declare function getBearing(from: Position, to: Position): DegreesTrue;