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

2d-polygon-self-intersections

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

2d-polygon-self-intersections - npm Package Compare versions

Comparing version 1.2.2 to 1.3.1

5

intersections.js
var isect = require('exact-segment-intersect');
var float = require('robust-estimate-float');
var hasIsect = require('robust-segment-intersect');

@@ -47,6 +46,2 @@ module.exports = selfIntersections;

if (!hasIsect(oc, on, pc, pn)) {
continue;
}
var r = isect(oc, on, pc, pn);

@@ -53,0 +48,0 @@ // since these are homogeneous vectors, if the last component `w` is 0

7

package.json

@@ -7,9 +7,8 @@ {

"dependencies": {
"exact-segment-intersect": "^1.0.0",
"robust-estimate-float": "^1.0.0",
"robust-segment-intersect": "^1.0.1"
"exact-segment-intersect": "^2.0.0",
"robust-estimate-float": "^1.0.0"
},
"name": "2d-polygon-self-intersections",
"description": "This library may not be fast, but it is robust. Robust in the fact that it will find all of the self-intersections in a polygon - minus of course shared endpoints.",
"version": "1.2.2",
"version": "1.3.1",
"main": "intersections.js",

@@ -16,0 +15,0 @@ "scripts": {

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