I am trying to find the angle created by the line connecting the point with the x axis and the x axis. Thus, I am trying to find a simple old tan-reverse. Here is the code I use in Python 3
angle_with_x_axis = math.atan(y_from_centre / x_from_centre)
I load point(1,1)like y_from_centreu x_from_centreand i get
0.7853981633974483
My expected result is 45, but naturally. What am I doing wrong here?
source
share