[ 3 / biz / cgl / ck / diy / fa / ic / jp / lit / sci / vr / vt ] [ index / top / reports ] [ become a patron ] [ status ]
2023-11: Warosu is now out of extended maintenance.

/sci/ - Science & Math

Search:


View post   

>> No.11255167 [View]
File: 10 KB, 705x146, 26.12.2019_190345.png [View same] [iqdb] [saucenao] [google]
11255167

I'm an absolute retardo when it comes to /math/, so please bear with me.

I'm trying to implement a smooth continuous path from multiple successive bezier-curves. Something very similar to pic related is what I'm after.

Each curve's starting point is (Xn, Yn), and end point (Xn+1, Yn+1).
My question is, where the fuck am I supposed to position the start/end anchor points for each curve, if I want a smooth path like in the pic I posted?

I tried playing around with https://codepen.io/explosion/pen/YGApwd , but it I don't think I've been able to figure it out yet.
I was hoping it would be as simple as setting the anchor points to (Xn, dY / 2) and (dX, Yn+1) or something like that, but I guess not.

Some example I found was using trig functions which I absolutely suck at, but if someone can just tell me where the points should be, I'll figure the exact maffs out myself, no problem.

Navigation
View posts[+24][+48][+96]