maath
maath copied to clipboard
🪶 Math helpers for the rest of us
This PR was opened by the [Changesets release](https://github.com/changesets/action) GitHub action. When you're ready to do a release, you can merge this and the packages will be published to npm automatically....
https://twitter.com/FarbsMcFarbs/status/1456830625617432576/photo/4 `x => (b+a-2)x^3 + (-2a-b+3)x^2 + ax`
See https://graphics.stanford.edu/~mdfisher/subdivision.html https://tylerxhobbs.com/essays/2017/aesthetically-pleasing-triangle-subdivision Splitting the triangle in two: - get a random vertex A - get the mid point of the opposing side M - add a new edge AM...
This would introduce an entry point `maath/three` with functions such as: 1. convert buffers to Vector3 and back 2. convert matrics to three's 3. host the methods that currently depend...
``` yarn # setup preconstruct yarn dev # run the local environment cd demo && yarn dev ```
Right now most buffer methods require manual passing of the stride of the buffer (eg. if it's a 2D points buffer or a 3D one). An alternative approach would be...
Both should exist, eg. ``` // whatever.viz.jsx // 1. passing viz function ComponentWithVizUsingR3FProbably() { return ... } // 2. non passing viz ... // whatever.test.js // regular jest stuff ```...
Hey! Thanks for the great lib, Encountered a few TypeScript issues while using the library with `@react-three/drei` where props expects a `Float32Array`. For instance the following code does not work...
added `choose` function as a way to calculate binomial coefficients, would come in handy if trying to calculate Bézier curve
Easy solution to interpolating between three buffers