N
Numeron
I have a problem trying to find the angle between two lines using
their slopes. I know that the angle is defined as the difference
between the arctan(slope)'s for each line, but java's Math.atan()
takes radians which confuses me, because the inverse of a tangent
function should *output* radians (or degrees) and just take a number
right?
As an easy example the arctan of the slope 1.0 should equal 45 degrees
but
Math.atan(1.0) = 0.7854
Math.atan(Math.toRadians(1.0)) = 0.0175
(not that attempting to convert a slope to radians makes sense anyway)
So how can I bend Math.atan() to work the way Im after?
-Numeron
their slopes. I know that the angle is defined as the difference
between the arctan(slope)'s for each line, but java's Math.atan()
takes radians which confuses me, because the inverse of a tangent
function should *output* radians (or degrees) and just take a number
right?
As an easy example the arctan of the slope 1.0 should equal 45 degrees
but
Math.atan(1.0) = 0.7854
Math.atan(Math.toRadians(1.0)) = 0.0175
(not that attempting to convert a slope to radians makes sense anyway)
So how can I bend Math.atan() to work the way Im after?
-Numeron