Skip to content

armgit / manim

Public Imported from GitHub
0

A community-maintained Python framework for creating mathematical animations.

added method for setting path arc of a Line

Ben Hambrecht526929098a6d
diff --git a/topics/geometry.py b/topics/geometry.py
index b5113ee5d..b9695f46c 100644
--- a/topics/geometry.py
+++ b/topics/geometry.py
@@ -234,6 +234,10 @@ class Line(VMobject):
])
self.account_for_buff()
+ def set_path_arc(self,new_value):
+ self.path_arc = new_value
+ self.generate_points()
+
def account_for_buff(self):
length = self.get_arc_length()
if length < 2*self.buff or self.buff == 0: