get triangle data from line — live canvas animation example

motion & easing8+
trig, angles & vectors8+
collision detection11+
numbers in motion7+
geometry & shapes8-
generative showpieces13+
handy helpers7+

click and drag to draw line and get data.

the hypotenuse is 282 pixels long.
the adjacent is 200 pixels long.
the opposite is 200 pixels long.
angle "A" is 44 degrees.
angle "B" is 46 degrees.
angle "C" is 90 degrees.