@butterwell/find-corners-from-points (npm): Given a series of four or more points, return sequences of four points [a,b,c,d]where the line defined by ab is within delta of 90 degrees (default 30 degrees).
Keywords: geometry|aproximation