ios check line intersects