Add function for polygon angles computation