polygon_test, a C++ code which calls polygon(), which computes properties of an arbitrary polygon in the plane, defined by a sequence of vertices.
The computer code and data files made available on this web page are distributed under the MIT license
polygon, a C++ code which computes properties of an arbitrary polygon in the plane, defined by a sequence of vertices, including interior angles, area, centroid, containment of a point, convexity, diameter, distance to a point, inradius, lattice area, nearest point in set, outradius, uniform sampling.