From a4a32e491de5ad56f3d01ed713202ae378e2672a Mon Sep 17 00:00:00 2001 From: Leonard Kugis Date: Sat, 22 Aug 2020 00:01:11 +0200 Subject: CurveBezier Fixed bezier curve --- AutopyExtended/Curve/CurveBezier.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'AutopyExtended/Curve/CurveBezier.py') 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 -- cgit v1.2.1