I want to make a tool that can measure angles between two user defined spots on a form. I have no code to do this at the moment, so any code would be appreciated.
Th
To measure an angle you need three points or a base direction.
Math.Atan2(y, x) can be used to measure the angle to the x-axis.
Note that y is the first param and not the second. Unlike other versions of this function it is safe with x=0
To transform the result which is given in radians to degrees you need to multiply with (180/Math.PI)