mreinstein / collision-2d

2d collision routines
MIT License
127 stars 0 forks source link

refactor 2d plane support #10

Closed mreinstein closed 3 years ago

mreinstein commented 3 years ago

there is currently 1 function, ray-plane-distance, but I have other 2d plane functions sitting around in various places:

It would be nice to consolidate these, and expose a 2d plane primitive. Currently leaning torwards:

{
        origin (vec2),
        normal (vec2),
        D: (float),
}