In this case optimal angle is considered to be the angle you get the longest (=maximal) distance with. The graph is showing distance on the vertical axis, which means that longest distance is the highest point of the graph. TLDR: You get longest (=maximal, optimal) distance with 45 degrees.