

def isIntersecting(self, pp, symbol, iPoint, onY2, xBrush, yBrush, brushWidth, brushHeight):
    c = symbol.getParent()
    p = c.getPoint(iPoint)
    prevX = Double.NaN
    x = p.getX()
    nextX = Double.NaN
    prevY = Double.NaN
    y = p.getY()
    nextY = Double.NaN
    if (iPoint > 0):
        prevX = c.getPoint((iPoint - 1)).getX()
        prevY = c.getPoint((iPoint - 1)).getY()
    if ((iPoint + 1) < c.getNPoints()):
        nextX = c.getPoint((iPoint + 1)).getX()
        nextY = c.getPoint((iPoint + 1)).getY()
    top = symbol.getBrushLocation().getUpperLeftY(yBrush, brushHeight, 0)
    bottom = (top + brushHeight)
    left = symbol.getBrushLocation().getUpperLeftX(xBrush, brushWidth, 0)
    right = (left + brushWidth)
    result = self.isIntersecting13(pp, symbol, prevX, x, nextX, prevY, y, nextY, onY2, top, right, bottom, left)
    return result

dataset/ETHPy150Open anandology/pyjamas/library/gwt/chart/SymbolType.py SymbolType.isIntersecting/original