2d-polygon-self-intersections
Advanced tools
Comparing version 1.1.0 to 1.1.1
@@ -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(); | ||
}); |
6437
132