Skip to content

Commit 3037f0e

Browse files
Remove wag method from Mobject (#3539)
Co-authored-by: Francisco Manríquez Novoa <[email protected]>
1 parent dd327a3 commit 3037f0e

File tree

1 file changed

+0
-14
lines changed

1 file changed

+0
-14
lines changed

manim/mobject/mobject.py

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1337,20 +1337,6 @@ def R3_func(point):
13371337

13381338
return self.apply_function(R3_func)
13391339

1340-
def wag(
1341-
self, direction: Vector3 = RIGHT, axis: Vector3 = DOWN, wag_factor: float = 1.0
1342-
) -> Self:
1343-
for mob in self.family_members_with_points():
1344-
alphas = np.dot(mob.points, np.transpose(axis))
1345-
alphas -= min(alphas)
1346-
alphas /= max(alphas)
1347-
alphas = alphas**wag_factor
1348-
mob.points += np.dot(
1349-
alphas.reshape((len(alphas), 1)),
1350-
np.array(direction).reshape((1, mob.dim)),
1351-
)
1352-
return self
1353-
13541340
def reverse_points(self) -> Self:
13551341
for mob in self.family_members_with_points():
13561342
mob.apply_over_attr_arrays(lambda arr: np.array(list(reversed(arr))))

0 commit comments

Comments
 (0)