I have drawn a line and i need to find the perpendicular line to it in order to put an a arrow head on the line

the line that g ets the arrow head may be point in one of 360 degrees so if you know how to do that i wouls appreciate it

other wise i need to figur out how to get the points to draw a perpendicular line to ANY line.

thanks guys