Segmento di linea ad angolo
Rectangular/polar conversion.
Rectangular/polar conversion. ToPolar gives the segment length and the true direction angle in degrees (0 to 360) from the first point to the second; the old page reported only an acute angle.
About this calculator
Rectangular/polar conversion. ToPolar gives the segment length and the true direction angle in degrees (0 to 360) from the first point to the second; the old page reported only an acute angle.
It has 2 modes: Segment to polar, Polar to rectangular. Pick the tab for the quantity you want.
What you need
- First point x.
- First point y.
- Second point x.
- Second point y.
Formula
Segment length = hypot(x2-x1,y2-y1).
Direction angle = an.
Where an0 = deg(atan2(y2-y1,x2-x1)); an = if(an0<0,an0+360,an0).
Worked example
With first point x 10, first point y 10, second point x 10, second point y 10 in Segment to polar mode, the calculator gives segment length = 0; direction angle = 0 °.
How to read the result
The main result is the segment length, shown after you click Calculate; the copy button next to it copies the value. Additional results: direction angle.