A community-maintained Python framework for creating mathematical animations.
Slighty more efficient get_location for VectorizedPoint
Grant Sandersonf163ba3bc631
diff --git a/mobject/types/vectorized_mobject.py b/mobject/types/vectorized_mobject.pyindex 95d402961..4a93ff652 100644--- a/mobject/types/vectorized_mobject.py+++ b/mobject/types/vectorized_mobject.py@@ -640,7 +640,7 @@ class VectorizedPoint(VMobject):return self.artificial_heightdef get_location(self):- return self.get_anchors()[0]+ return self.points[0]def set_location(self, new_loc):self.set_points(np.array([new_loc]))