This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const {asin, cos, sin, sqrt, PI} = Math | |
const EARTH_RADIUS_KM = 6371 | |
const METERS_IN_KM = 1000 | |
// const deg2rad = n => Math.tan(n * (Math.PI / 180)) | |
const convertDegToRad = degries => degries * (PI / 180) | |
/** | |
* is One Point within Another |