1.0.1 • Published 8 years ago

lines-intersect v1.0.1

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

lines-intersect

Check if segments intersect

Install

  • npm: npm install lines-intersect
  • Bower: bower install lines-intersect

Usage

assert(intersect(0,0, 1,1, 0,1, 1,0)===true);

Tests

mocha

Source

http://ptspts.blogspot.no/2010/06/how-to-determine-if-two-line-segments.html