I\'ve got a line (x1,y1) and (x2,y2). I\'d like to use tan inverse to find the angle of that line, how would I do so in java?
I\'d like to see what angle the line makes
The atan2 function helps solve this problem while avoiding boundary conditions such as division by zero.
Math.atan2(y2-y1, x2-x1)