Bezier curve : forcing a curve of 4 points to pass through control points in 3D space
问题 I have read the thread to make this happen for 4 points but only in 2D space here . I have implemented the answer for 3D but only for 3 control points here I have read this post but don't understand the sudo code or the math Can anyone simplify in java? I don't want to draw the curve as 2 segments of 3 points 回答1: Formula for cubic Bezier curve component (say X): X(t) = P0.X*(1-t)^3 + 3*P1.X*(1-t)^2*t + 3*P2.X*(1-t)*t^2 + P3.X*t^3 where P0 and P3 are end points, and P1 an P2 are control