get_polygon_CM_and_area - Finds the CM and area of a polygon
Example compile flags (system dependent):
-DLINUX_X86_64 -DLINUX_X86_64_OPTERON -DGNU_COMPILER
-lKJB -lfftw3 -lgsl -lgslcblas -ljpeg -lSVM -lstdc++ -lpthread -lSLATEC -lg2c -lacml -lacml_mv -lblas -lg2c -lncursesw
const Matrix *points_mp,
This routine finds the center of mass and area of a polygon. The polygon is
specified by a list of points placed in the rows of the matrix point_mp. The
points can be of 2 or 3 dimensions, but this routine assumes that they lie
in a 2-D subspace. Either output argument can be set to NULL, in which case,
that output is not returned.
NO_ERROR on success, and ERROR on failure, with an error message being
This software is not adequatedly tested. It is recomended that
results are checked independantly where appropriate.