BEZIER CURVE ALGORITHM
2016-08-23
0 0 0
no vote
Other
Earn points
To construct the cubic Bezier curves C0, ..., Cn-1 in
parameter form, where Ci is represented by
(xi(t),yi(t)) = ( a0(i) + a1(i)*t + a2(i)*t^2 + a3(i)*t^3,
b0(i) + b1(i)*t + b2(i)*t^2 + b3(i)*t^3)
for 0 <= t <= 1 as determined by the left endpoint (x(i),y(i)),
left guidepoint (x+(i),y+(i)), right endpoint (x(i+1),y(i+1)) and
right guidepoint (x-(i+1),y-(i+1)) for each i = 0, 1, ... , n-1;
INPUT n, ( (x(i),y(i)), i = 0,...,n ),
( (x+(i),y+(i)), i = 0,...,n-1 ),
( (x-(i),y-(i)), i = 1,...,n ).
OUTPUT coefficients ( a
parameter form, where Ci is represented by
(xi(t),yi(t)) = ( a0(i) + a1(i)*t + a2(i)*t^2 + a3(i)*t^3,
b0(i) + b1(i)*t + b2(i)*t^2 + b3(i)*t^3)
for 0 <= t <= 1 as determined by the left endpoint (x(i),y(i)),
left guidepoint (x+(i),y+(i)), right endpoint (x(i+1),y(i+1)) and
right guidepoint (x-(i+1),y-(i+1)) for each i = 0, 1, ... , n-1;
INPUT n, ( (x(i),y(i)), i = 0,...,n ),
( (x+(i),y+(i)), i = 0,...,n-1 ),
( (x-(i),y-(i)), i = 1,...,n ).
OUTPUT coefficients ( a
fortran
算法
曲线
贝塞尔
Related Source Codes
Deform secondary development
0
0
no vote
Classic Interview Questions for Digital City Front
0
0
no vote
HDU-2553 N Queen Question
0
0
no vote
unifiber-VUMAT
0
0
no vote
Artificial fish school algorithm
0
0
no vote
No comment