Angle Of A Line
This example determines the angle of a line, referenced from its start point(x1,y1)
SVG has angle values as: 0 degrees at
top
, and angle increases
clockwise
.
90 degrees
GIVEN: 2 Points
x1=
y1=
x2=
y2=
compute angle
angle =
degrees
SVG Source:
Javascript:
OK in:IE11/CH32/FF23