1
0
mirror of https://github.com/Pomax/BezierInfo-2.git synced 2025-08-21 07:51:49 +02:00

the stated Bezier function missed the last iteration

reported in https://pomax.github.io/bezierinfo/#comment-3140904916
This commit is contained in:
Mike Kamermans
2017-02-06 15:48:44 -08:00
committed by GitHub
parent d385ec1062
commit d3d74d8b35

View File

@@ -243,7 +243,7 @@ binomial(n,k):
<pre>function Bezier(n,t):
sum = 0
for(k=0; k<n; k++):
for(k=0; k<=n; k++):
sum += binomial(n,k) * (1-t)^(n-k) * t^(k)
return sum</pre>