14 Mar · Robert Eisele
A compact JavaScript function computes both normal vectors of a directed 2D line segment through the perp operator, optionally normalizes them...