aviation-math
Version:
Different methods to calculate distances, bearing and projections for aviation related software
25 lines (24 loc) • 972 B
TypeScript
import { DegreesTrue, NauticalMiles, TurnDirection } from "./common";
import { Position } from "./position";
/**
* Projects the eventual position of a turn starting at a reference position
*
* @example
* const result = projectTurnPosition(
* new Position(50.0379326, 8.5599631),
* 270,
* 90,
* 4,
* TurnDirection.LEFT
* );
* // result.lat = 49.9048...
* // result.lon = 8.5599...
*
* @param reference The start position of the turn
* @param inboundCourse Course to start the turn inbound the reference position
* @param outboundCourse Course to end the turn with
* @param radius The turn radius in nautical miles
* @param turnDirection Turn direction (left or right)
* @returns The eventual position of the turn where course is outboundCourse
*/
export declare function projectTurnPosition(reference: Position, inboundCourse: DegreesTrue, outboundCourse: DegreesTrue, radius: NauticalMiles, turnDirection: TurnDirection): Position;