A 2D Polygon Math Library