get_ordered_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 in cyclacle order placed in the rows of the
matrix point_mp. The points can be of any dimension, 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
If the points are out of order, then this routine will not work! If the
points are not known to be in order, then it is best to use
This software is not adequatedly tested. It is recomended that
results are checked independantly where appropriate.