New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.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.1.0 to 1.1.1

2

intersections.js

@@ -50,3 +50,3 @@ var isect = require('exact-segment-intersect');

r[0] = float(r[0]) / w;
r[1] = float(r[0]) / w;
r[1] = float(r[1]) / w;
r.pop();

@@ -53,0 +53,0 @@

@@ -12,3 +12,3 @@ {

"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.1.0",
"version": "1.1.1",
"main": "intersections.js",

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

var test = require('tape');
var isects = require('./intersections');
/*

@@ -33,7 +32,7 @@ test('no intersections (square)', function(t) {

t.equal(r.length, 1, 'no self-intersections');
t.deepEqual(r[0], [5, 0], 'isect at (5, 0)')
t.deepEqual(r[0], [5, 5], 'isect at (5, 0)')
t.end();
});
*/
test('work with vec2', function(t) {

@@ -50,4 +49,4 @@

t.equal(r.length, 1, 'no self-intersections');
t.deepEqual(r[0], [5, 0], 'isect at (5, 0)')
t.deepEqual(r[0], [5, 5], 'isect at (5, 0)')
t.end();
});
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