From a6b514e96a90ac9b8b93b169541399332281e812 Mon Sep 17 00:00:00 2001 From: Javier Carreira <140205325+SupernovaIa@users.noreply.github.com> Date: Sat, 4 Jul 2026 23:55:48 +0200 Subject: [PATCH] docs(space_ops): fix return order in cartesian_to_spherical docstring The docstring claimed the returned array is (distance, phi, theta), but the function actually returns np.array([r, theta, phi]) -- matching spherical_to_cartesian's own docstring/unpacking order (r, theta, phi). Only the docstring text was wrong; no behavior change. Refs #3123 --- manim/utils/space_ops.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/manim/utils/space_ops.py b/manim/utils/space_ops.py index 0aa57b93c6..0339ec8bb2 100644 --- a/manim/utils/space_ops.py +++ b/manim/utils/space_ops.py @@ -810,7 +810,7 @@ def earclip_triangulation(verts: np.ndarray, ring_ends: list) -> list: def cartesian_to_spherical(vec: Vector3DLike) -> np.ndarray: """Returns an array of numbers corresponding to each - polar coordinate value (distance, phi, theta). + polar coordinate value (distance, theta, phi). Parameters ----------