mirror of
https://github.com/3b1b/manim.git
synced 2025-04-13 09:47:07 +00:00
commit
df9acfb4d5
1 changed files with 1 additions and 1 deletions
|
@ -225,7 +225,7 @@ def smooth_quadratic_path(anchors: Vect3Array) -> Vect3Array:
|
||||||
if len(anchors) < 2:
|
if len(anchors) < 2:
|
||||||
return anchors
|
return anchors
|
||||||
elif len(anchors) == 2:
|
elif len(anchors) == 2:
|
||||||
return np.array([anchors[0], anchors.mean(1), anchors[2]])
|
return np.array([anchors[0], anchors.mean(0), anchors[1]])
|
||||||
|
|
||||||
is_flat = (anchors[:, 2] == 0).all()
|
is_flat = (anchors[:, 2] == 0).all()
|
||||||
if not is_flat:
|
if not is_flat:
|
||||||
|
|
Loading…
Add table
Reference in a new issue