npm.io
1.0.3 • Published 4 years ago

point-inside-polygon

Licence
ISC
Version
1.0.3
Deps
0
Vulns
0
Weekly
1.1K
Stars
1

point-inside-polygon

Check if point is inside polygon

Install

  • npm: npm install point-inside-polygon
  • Bower: bower install point-inside-polygon

Usage

assert(inside([1,1], [[0,0], [2,0], [2,2], [0,0]])===true);

Tests

mocha

Source

http://www.ecse.rpi.edu/Homepages/wrf/Research/Short_Notes/pnpoly.html

Keywords