turf-inside
Advanced tools
Comparing version 0.1.1 to 0.1.2
{ | ||
"name": "turf-inside", | ||
"version": "0.1.1", | ||
"version": "0.1.2", | ||
"description": "turf inside module", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
turf-inside | ||
=========== | ||
[![Build Status](https://travis-ci.org/Turfjs/turf-inside.svg)](https://travis-ci.org/Turfjs/turf-inside) | ||
Checks to see if a point is inside of a polygon. The polygon can be convex or concave. | ||
```js | ||
var inside = require('turf-inside') | ||
var point = require('turf-point') | ||
var polygon = require('turf-polygon') | ||
var poly = polygon([[[0,0], [50, 50], [0,100], [100,100], [100,0]]]) | ||
var pt = point(75, 75) | ||
var isInside = inside(pt, poly) | ||
console.log(isInside) // true | ||
}) | ||
``` |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
4325
7
19