def collides_with_point(self, point: Point) -> bool: """Check if point is within the current sprite. :param Point point: Point to check. :return: True if the point is contained within the sprite's boundary. :rtype: bool """ from arcade.geometry import is_point_in_polygon x, y = point return is_point_in_polygon(x, y, self.get_adjusted_hit_box())
def collides_with_point(self, point: Point) -> bool: """Check if point is within the current sprite. Args: self: Current sprite point: Point to check. Returns: True if the point is contained within the sprite's boundary. """ from arcade.geometry import is_point_in_polygon x, y = point return is_point_in_polygon(x, y, self.points)
def is_point_inside(self, x, y): return is_point_in_polygon(x, y, self.point_list)