I am trying to figure out the angle from 0 Degrees to the Triangle's Hypotenuse. Both X and Y are input values to this function and can be positive or negative values. I need the solution in a mathematical function so I can input X and Y to get the angle.
Thanks!
Cant see your image, but basically just do this, im assuming your X and Y is the hypotenuse and the adjacent length, then multiply it by 180/pi
local angle = math.acos(Y/X)*(180/math.pi)