From 3878b8c077cd5054fcea314641d917f32c2ac4dd Mon Sep 17 00:00:00 2001 From: Grant Sanderson Date: Fri, 23 Dec 2022 10:04:27 -0700 Subject: [PATCH] Fix rotation_between_vectors --- manimlib/utils/space_ops.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/manimlib/utils/space_ops.py b/manimlib/utils/space_ops.py index a5112bda..1bde3d1a 100644 --- a/manimlib/utils/space_ops.py +++ b/manimlib/utils/space_ops.py @@ -145,7 +145,7 @@ def rotation_between_vectors(v1: Vect3, v2: Vect3) -> Matrix3x3: axis = np.cross(v1, UP) return rotation_matrix( angle=angle_between_vectors(v1, v2), - axis=np.cross(v1, v2) + axis=axis, )