stevenpetryk / mafs

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

MovablePoints don't respect constraints when initialized #99

Open stevenpetryk opened 1 year ago

stevenpetryk commented 1 year ago

MovablePoints can be initialized at any arbitrary point, even when they have a constrain function applied. The MovablePoint should instead be constrained upon initialization, and also when setPoint is called.