stevenpetryk / mafs

React components for interactive math
https://mafs.dev
MIT License
3.23k stars 88 forks source link

Bézier curves | Curved line #76

Open gr-qft opened 1 year ago

gr-qft commented 1 year ago

Points and Lines are first-class objects in mafs. I think curved lines should also be first class objects (I see an example on Bézier curves, perhaps there's a way to exact the curved lines from there, but it looks quite complicated).

stevenpetryk commented 1 year ago

It would be pretty easy to support Bézier curves since SVG supports them. Would just have to transform the control points into the coordinate space.

gr-qft commented 1 year ago

I see, this is really useful information. If I have any free time I'll look into this issue.