Draw the first line, slope m1, ending at point (a,b), r units out from the origin and making an anglewith respect to the x-axis:
m1 = b/a =
Now draw a 2nd line with slope m2, length r units, rotated 90 degrees with respect to the first line. The endpoint at r units out is (c,d):
Make use of this identity:
c =
Make use of this identity:
d =
Noting m2 = d/c, you can now write:
m1*m2 = (b/a)(d/c) == -1, with the constraint neither slope is zero.