upq_poly
Central polygon moments
m = upq_poly(v, p, q) is the PQ'th central 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
as a single vertex.
- The central moments are invariant to translation.
See also
upq, mpq_poly, npq_poly
© 1990-2012 Peter Corke.