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