Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@lunit/is-intersection

Package Overview
Dependencies
Maintainers
2
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@lunit/is-intersection - npm Package Compare versions

Comparing version 1.0.1 to 1.0.2

8

index.js

@@ -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": {

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc