Skip to content

Commit

Permalink
add notes to segseg overlap
Browse files Browse the repository at this point in the history
  • Loading branch information
Mike Reinstein committed Jul 3, 2020
1 parent 8ca06a4 commit 5b9f19a
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/segment-segment-overlap.js
Expand Up @@ -5,6 +5,12 @@
// segseg(50, -50, -50, 50, 63.517, -7.843, -3,922, 31.759)


// TOOD: consider investigating other functions for this. Maybe one of them
// will handle negative values. e.g., maybe this?
// https://stackoverflow.com/questions/563198/how-do-you-detect-where-two-line-segments-intersect
// https://cp-algorithms.com/geometry/segments-intersection.html


// adapted from https://github.com/tmpvar/segseg/blob/master/index.js
import { vec2 } from './deps.js'

Expand Down

0 comments on commit 5b9f19a

Please sign in to comment.