Closed mreinstein closed 3 years ago
there is currently 1 function, ray-plane-distance, but I have other 2d plane functions sitting around in various places:
ray-plane-distance
signedDistanceTo(plane, point)
isFrontFacingTo(plane, dir)
It would be nice to consolidate these, and expose a 2d plane primitive. Currently leaning torwards:
{ origin (vec2), normal (vec2), D: (float), }
there is currently 1 function,
ray-plane-distance
, but I have other 2d plane functions sitting around in various places:signedDistanceTo(plane, point)
isFrontFacingTo(plane, dir)
It would be nice to consolidate these, and expose a 2d plane primitive. Currently leaning torwards: