Re: Get angle from 2 points

you mean the angle which made from the line that pass from the two points with the x-axis (cute angle, < 90 )?? if that so
tan ( angle ) = slope
slope of that line is 4/2 = 2
so the angle will be arctan(2)

Re: Get angle from 2 points

If you slide the line over till it hits the y axis, it looks around 63 degrees to me.

I to am trying to create a function that can calculate degrees from a graph for the purpose of a script in Script-fu for GIMP. However, the problem is the slope of 90 degrees is y/0, which creates some difficulty when writing a function.