I've been looking around the web and I cant seem to find the name for this specific transformation. Basically I want to go from this:

(don't mind the curve, it's only for presentation) to this:
.
The picture itself isn't necessary to transform because I can just use an already above view picture but what I want is to transform the curve from picture 1 so it would show it like it is in picture 2, because the entry angle of the curve hitting the pins on picture 1 isn't the same as the one shown on picture 2.
And what are the theoretical steps of doing this? Thanks