Skip to content

hubtoys/aero-tools

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 

Repository files navigation

aero-tools

npm version

Some usefull functions to perform aeronautical computations

Installing

Using npm:

$ npm install aero-tools

Using bower:

$ bower install aero-tools

Using yarn:

$ yarn add aero-tools

Using pnpm:

$ pnpm add aero-tools

Using jsDelivr CDN:

<script src="https://cdn.jsdelivr.net/npm/aero-tools/dist/aero-tools.min.js"></script>

Using unpkg CDN:

<script src="https://unpkg.com/aero-tools/dist/aero-tools.min.js"></script>

Example

note: CommonJS usage

In order to gain the TypeScript typings (for intellisense / autocomplete) while using CommonJS imports with require() use the following approach:

const { destinationPoint } = require("aero-tools");

Search for a destination point, given a start position, distance & bearing

console.log(
  destinationPoint(53.1538889, 1.7297222222222224, "096°01′19″", 2000)
);

Available functions

aero-tools#deg2Rad
aero-tools#deg2Dms,
aero-tools#bearing,
aero-tools#meters2Miles,
aero-tools#meters2NauticMiles,
aero-tools#distance,
aero-tools#destinationPoint,
aero-tools#rangeMap,

License

MIT

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published