|
|
William F Pokorny <ano### [at] anonymousorg> wrote:
> On 1/29/25 10:51, Tor Olav Kristensen wrote:
> > #macro CubicBezierFn(c0, c1, c2, c3)
> >
> > function(s) {
> > 0
> > + pow(1 - s, 3)*c0
> > + 3*pow(1 - s, 2)*s*c1
> > + 3*(1 - s)*pow(s, 2)*c2
> > + pow(s, 3)*c3
> > }
> >
> > #end // macro CubicBezierFn
>
> Perhaps time to add an inbuilt f_bezier_cubic() to yuqk too. :-)
Yes, that would be nice.
Then comes the question if adding f_bezier_quadratic() and f_bezier_quartic()
also is a good idea.
And then if the various derivative functions of them should be added...
--
Tor Olav
http://subcube.com
https://github.com/t-o-k
Post a reply to this message
|
|