tIy = dx * (indY + sy / 2 - yA) if dy != 0 else float("+inf")