Line and its Perpindicular Line

This example creates a perpendicular line through the center of the referenced line. The perpendicular line is the same length as the referenced line..
Reference Line: x1= y1= x2= y2=

Perpendicular Line: x1= y1= x2= y2=

SVG Source:
Javascript:
OK in:IE11/CH32/FF23