Skip to content

armgit / manim

Public Imported from GitHub
0

A community-maintained Python framework for creating mathematical animations.

fix `get_arc_center()` returning reference of point (#3599)

Sparsh Goenkae2cec98f9a73
diff --git a/manim/mobject/geometry/arc.py b/manim/mobject/geometry/arc.py
index c979f798d..dd532b07b 100644
--- a/manim/mobject/geometry/arc.py
+++ b/manim/mobject/geometry/arc.py
@@ -389,7 +389,7 @@ class Arc(TipableVMobject):
# For a1 and a2 to lie at the same point arc radius
# must be zero. Thus arc_center will also lie at
# that point.
- return a1
+ return np.copy(a1)
# Tangent vectors
t1 = h1 - a1
t2 = h2 - a2