1.0.3 • Published 8 years ago

point-inside-polygon v1.0.3

Weekly downloads
437
License
ISC
Repository
github
Last release
8 years ago

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