Point To Line

339
340
1
2

Click and Drag the squares to move their positions.

Use the Angle slider to change the angle of the line.

Distance will be measured from the green object to the blue line. The code is in the red square object.

Editor