Comparing version 0.1.0-alpha4 to 0.1.0-alpha5
@@ -335,3 +335,3 @@ 'use strict'; | ||
// The great circle reference is inside the circle, use the intercept which is in-front of the great circle reference as per the great circle bearing | ||
if (diffAngle(greatCircleBearing, bearingTo(greatCircleReference, intercepts[0])) <= 90) { | ||
if (Math.abs(diffAngle(greatCircleBearing, bearingTo(greatCircleReference, intercepts[0]))) <= 90) { | ||
return intercepts[0]; | ||
@@ -341,3 +341,3 @@ } | ||
} | ||
if (diffAngle(greatCircleBearing, bearingTo(greatCircleReference, smallCircleCentre)) <= 90) { | ||
if (Math.abs(diffAngle(greatCircleBearing, bearingTo(greatCircleReference, smallCircleCentre))) <= 90) { | ||
// The small circle centre is in-front of the great circle reference, use the closest intercept | ||
@@ -344,0 +344,0 @@ if (distanceTo(greatCircleReference, intercepts[0]) < distanceTo(greatCircleReference, intercepts[1])) { |
{ | ||
"name": "msfs-geo", | ||
"version": "0.1.0-alpha4", | ||
"version": "0.1.0-alpha5", | ||
"description": "A set of geographic mathematical utility functions, designed for use in aviation, hence the use of Nautical Miles, Feet, and Degrees", | ||
"scripts": { | ||
"build": "rollup -c rollup.config.js", | ||
"test": "echo \"Error: no test specified\" && exit 1", | ||
"lint": "eslint --cache **/*.{js,ts}", | ||
"test": "jest", | ||
"prepublishOnly": "npm run build" | ||
@@ -9,0 +10,0 @@ }, |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No tests
QualityPackage does not have any tests. This is a strong signal of a poorly maintained or low quality package.
Found 1 instance in 1 package
130415
2