timohausmann / quadtree-ts

Quadtree Typescript Implementation
https://timohausmann.github.io/quadtree-ts/
MIT License
125 stars 15 forks source link

Line: detection fails when the line crosses the node exactly at corners #14

Open timohausmann opened 10 months ago

timohausmann commented 10 months ago

There is a bug where detection fails on corner intersections when the line enters/exits the node exactly at corners (45°)

https://github.com/timohausmann/quadtree-ts/blob/main/test/Line/Line.getIndex.test.ts#L65