def METHOD_NAME(self, point):
    x, y = self.testPoint
    x1, y1 = self._getCurrentPoint()
    x2, y2 = point
    if x1 < x and x2 < x:
        return
    if y1 < y and y2 < y:
        return
    if y1 >= y and y2 >= y:
        return
    dx = x2 - x1
    dy = y2 - y1
    t = (y - y1) / dy
    ix = dx * t + x1
    if ix < x:
        return
    self._addIntersection(y2 > y1)