aboutsummaryrefslogtreecommitdiff
path: root/AutopyExtended/Curve/CurveBezier.py
diff options
context:
space:
mode:
Diffstat (limited to 'AutopyExtended/Curve/CurveBezier.py')
-rw-r--r--AutopyExtended/Curve/CurveBezier.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/AutopyExtended/Curve/CurveBezier.py b/AutopyExtended/Curve/CurveBezier.py
index 64d9539..421b93d 100644
--- a/AutopyExtended/Curve/CurveBezier.py
+++ b/AutopyExtended/Curve/CurveBezier.py
@@ -19,7 +19,7 @@ class CurveBezier(Curve):
if(t_target != self.__tn):
raise ValueError("t_target must be equal to tn.")
return (self.__x[t], self.__y[t])
-
+
@staticmethod
def bernstein(i, n, t):
- return comb(n, i) * (t ** (n - 1)) * (1 - t) ** i
+ return comb(n, i) * (t ** (n - i)) * (1 - t) ** i