stevenpetryk / mafs

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

tidying / performance updates to vec module #92

Closed sritchie closed 1 year ago

sritchie commented 1 year ago

This PR modifies the internal 3x3 transform-and-translate matrix to a 2x3, removing the redundant final row. I then pushed these changes through the matrix inversion and multiplication code, for what should be a nice performance improvement.

I also made a few small changes to the vector code that should save some computation and, hopefully, make the code more understandable to new folks coming in.

vercel[bot] commented 1 year ago

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated
mafs ✅ Ready (Inspect) Visit Preview 💬 Add your feedback Jan 19, 2023 at 6:34AM (UTC)
stevenpetryk commented 1 year ago

this is a great contribution! I will release this as version v0.13.0.