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(
|
||||
self,
|
||||
points: np.ndarray,
|
||||
buff: float = MED_SMALL_BUFF
|
||||
buff: float = 0
|
||||
) -> bool:
|
||||
bb = self.get_bounding_box()
|
||||
mins = (bb[0] - buff)
|
||||
|
@ -296,7 +296,7 @@ class Mobject(object):
|
|||
def is_point_touching(
|
||||
self,
|
||||
point: np.ndarray,
|
||||
buff: float = MED_SMALL_BUFF
|
||||
buff: float = 0
|
||||
) -> bool:
|
||||
return self.are_points_touching(np.array(point, ndmin=2), buff)[0]
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue