node-geometry-library
Advanced tools
Comparing version 1.2.4 to 1.2.5
@@ -127,3 +127,4 @@ "use strict"; | ||
// @ts-ignore | ||
polygon.forEach(val => { | ||
for (let index in polygon) { | ||
const val = polygon[index]; | ||
let dLng3 = MathUtil_1.default.wrap(lng3 - lng1, -Math.PI, Math.PI); | ||
@@ -142,3 +143,3 @@ // Special case: point equal to vertex is inside. | ||
lng1 = lng2; | ||
}); | ||
} | ||
return (nIntersect & 1) != 0; | ||
@@ -145,0 +146,0 @@ } |
{ | ||
"name": "node-geometry-library", | ||
"version": "1.2.4", | ||
"version": "1.2.5", | ||
"description": "Javascript Geometry Library provides utility functions for the computation of geometric data on the surface of the Earth. Code ported from Google Maps Android API.", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
58220
1028