@lunit/is-intersection
Advanced tools
Comparing version 1.0.1 to 1.0.2
@@ -106,6 +106,6 @@ (function(e, a) { for(var i in a) e[i] = a[i]; }(exports, /******/ (function(modules) { // webpackBootstrap | ||
if (Math.min(a[1], b[1]) >= Math.max(c[1], d[1])) return false; | ||
var sign1 = (b[0] - a[0]) * (c[1] - a[1]) - (c[0] - a[0]) * (b[1] - a[1]); | ||
var sign2 = (b[0] - a[0]) * (d[1] - a[1]) - (d[0] - a[0]) * (b[1] - a[1]); | ||
var sign3 = (d[0] - c[0]) * (a[1] - c[1]) - (a[0] - c[0]) * (d[1] - c[1]); | ||
var sign4 = (d[0] - c[0]) * (b[1] - c[1]) - (b[0] - c[0]) * (d[1] - c[1]); | ||
const sign1 = (b[0] - a[0]) * (c[1] - a[1]) - (c[0] - a[0]) * (b[1] - a[1]); | ||
const sign2 = (b[0] - a[0]) * (d[1] - a[1]) - (d[0] - a[0]) * (b[1] - a[1]); | ||
const sign3 = (d[0] - c[0]) * (a[1] - c[1]) - (a[0] - c[0]) * (d[1] - c[1]); | ||
const sign4 = (d[0] - c[0]) * (b[1] - c[1]) - (b[0] - c[0]) * (d[1] - c[1]); | ||
if (sign1 === 0 && sign2 === 0 && sign3 === 0 && sign4 === 0) return true; | ||
@@ -112,0 +112,0 @@ return sign1 * sign2 < 0 && sign3 * sign4 < 0; |
{ | ||
"name": "@lunit/is-intersection", | ||
"version": "1.0.1", | ||
"version": "1.0.2", | ||
"description": "Test are two points intersection", | ||
@@ -9,3 +9,3 @@ "author": { | ||
}, | ||
"repository": "lunit-io/opt-tool-frontend", | ||
"repository": "lunit-io/frontend-components", | ||
"license": "MIT", | ||
@@ -12,0 +12,0 @@ "publishConfig": { |
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 repository
Supply chain riskPackage does not have a linked source code repository. Without this field, a package will have no reference to the location of the source code use to generate the package.
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 repository
Supply chain riskPackage does not have a linked source code repository. Without this field, a package will have no reference to the location of the source code use to generate the package.
Found 1 instance in 1 package
6145