function polygonEdgeAngles input Real polygon[:, 2] "Polygon"; input Real tolerance = 0 "Tolerance"; output Real alpha[size(polygon, 1)] "Vector of polygon edge angles"; output Integer n "Number of polygon angles. If -1, the result is undecided"; end polygonEdgeAngles;