mirror of
https://github.com/3b1b/manim.git
synced 2025-08-05 16:49:03 +00:00
Just use L-inf norm for point equality
This commit is contained in:
parent
ccc84f4ab1
commit
0efa96e399
1 changed files with 1 additions and 1 deletions
|
@ -750,7 +750,7 @@ class VMobject(Mobject):
|
||||||
|
|
||||||
#
|
#
|
||||||
def consider_points_equal(self, p0: Vect3, p1: Vect3) -> bool:
|
def consider_points_equal(self, p0: Vect3, p1: Vect3) -> bool:
|
||||||
return get_norm(p1 - p0) < self.tolerance_for_point_equality
|
return all(abs(p1 - p0) < self.tolerance_for_point_equality)
|
||||||
|
|
||||||
# Information about the curve
|
# Information about the curve
|
||||||
def get_bezier_tuples_from_points(self, points: Vect3Array) -> Iterable[Vect3Array]:
|
def get_bezier_tuples_from_points(self, points: Vect3Array) -> Iterable[Vect3Array]:
|
||||||
|
|
Loading…
Add table
Reference in a new issue