In the project I use trigonometry to find the location of a sprite in relation to a line. Use the arrows to turn the line. You can also click on the dot to get it's position relative to the line. Click on the stage to move the dot.