A community-maintained Python framework for creating mathematical animations.
Remove wag method from Mobject (#3539)
Jason Grace3037f0e71314
diff --git a/manim/mobject/mobject.py b/manim/mobject/mobject.pyindex 0b4dbbc78..eaf7fa1b7 100644--- a/manim/mobject/mobject.py+++ b/manim/mobject/mobject.py@@ -1337,20 +1337,6 @@ class Mobject:return self.apply_function(R3_func)- def wag(- self, direction: Vector3 = RIGHT, axis: Vector3 = DOWN, wag_factor: float = 1.0- ) -> Self:- for mob in self.family_members_with_points():- alphas = np.dot(mob.points, np.transpose(axis))- alphas -= min(alphas)- alphas /= max(alphas)- alphas = alphas**wag_factor- mob.points += np.dot(- alphas.reshape((len(alphas), 1)),- np.array(direction).reshape((1, mob.dim)),- )- return self-def reverse_points(self) -> Self:for mob in self.family_members_with_points():mob.apply_over_attr_arrays(lambda arr: np.array(list(reversed(arr))))