alexbol99 / flatten-js

Javascript library for 2d geometry
MIT License
560 stars 58 forks source link

Add support for intersection of ray and polygon/shapes #67

Closed garma83 closed 1 year ago

garma83 commented 3 years ago

As in title. This would be defined as the intersections of a line with a polygon, but only from the starting point in the direction of the ray. My workaround right now is to define a Segment between a point and another point that is translated towards (near) infinity