mpq_poly
Polygon moments
m = mpq_poly(v, p, q) is the PQ'th moment of the polygon with vertices
described by the columns of v.
Notes
- The points must be sorted such that they follow the perimeter in
sequence (counter-clockwise).
- If the points are clockwise the moments will all be negated, so centroids
will be still be correct.
- If the first and last point in the list are the same, they are considered
to be a single vertex.
See also
mpq, npq_poly, upq_poly, Polygon
© 1990-2012 Peter Corke.