mirror of
https://github.com/3b1b/manim.git
synced 2025-04-13 09:47:07 +00:00
Set default buff for is_point_touching to 0
This commit is contained in:
parent
5d59f945ca
commit
c1b222c233
1 changed files with 2 additions and 2 deletions
|
@ -286,7 +286,7 @@ class Mobject(object):
|
||||||
def are_points_touching(
|
def are_points_touching(
|
||||||
self,
|
self,
|
||||||
points: np.ndarray,
|
points: np.ndarray,
|
||||||
buff: float = MED_SMALL_BUFF
|
buff: float = 0
|
||||||
) -> bool:
|
) -> bool:
|
||||||
bb = self.get_bounding_box()
|
bb = self.get_bounding_box()
|
||||||
mins = (bb[0] - buff)
|
mins = (bb[0] - buff)
|
||||||
|
@ -296,7 +296,7 @@ class Mobject(object):
|
||||||
def is_point_touching(
|
def is_point_touching(
|
||||||
self,
|
self,
|
||||||
point: np.ndarray,
|
point: np.ndarray,
|
||||||
buff: float = MED_SMALL_BUFF
|
buff: float = 0
|
||||||
) -> bool:
|
) -> bool:
|
||||||
return self.are_points_touching(np.array(point, ndmin=2), buff)[0]
|
return self.are_points_touching(np.array(point, ndmin=2), buff)[0]
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue