diff options
author | Leonard Kugis <leonard@kug.is> | 2020-08-22 00:01:11 +0200 |
---|---|---|
committer | Leonard Kugis <leonard@kug.is> | 2020-08-22 00:01:11 +0200 |
commit | a4a32e491de5ad56f3d01ed713202ae378e2672a (patch) | |
tree | a722403dc6ec18250bda74a223a1180a4d178570 /AutopyExtended/Curve/CurveBezier.py | |
parent | 10df6080647e5904a6c03b497586a554b1985a99 (diff) |
CurveBezier
Fixed bezier curve
Diffstat (limited to 'AutopyExtended/Curve/CurveBezier.py')
-rw-r--r-- | AutopyExtended/Curve/CurveBezier.py | 4 |
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 |