Add more lenient tolerance to Mobject.has_same_shape_as

This commit is contained in:
Grant Sanderson
2023-02-03 17:35:20 -08:00
parent fab917ccee
commit 3bf9e40aba

View File

@ -739,7 +739,7 @@ class Mobject(object):
)
if len(points1) != len(points2):
return False
return bool(np.isclose(points1, points2).all())
return bool(np.isclose(points1, points2, atol=self.get_width() * 1e-2).all())
# Creating new Mobjects from this one