The black circle is moving in the direction of the red line. The blue circle is the first point where the black circle collides with the black line when moving along the red line. The green point is the point that the blue line touches the black line