Added logic to find the longest edge and the angle formed from the polygon centroid to the the centroid of this edge.