Home > hfrc > matlab > utility > centroid.m

centroid

PURPOSE ^

CENTROID Center of mass of a polygon.

SYNOPSIS ^

function [x0,y0] = centroid(x,y)

DESCRIPTION ^

 CENTROID Center of mass of a polygon.
    [X0,Y0] = CENTROID(X,Y) Calculates centroid 
    (center of mass) of planar polygon with vertices 
    coordinates X, Y.
    Z0 = CENTROID(X+i*Y) returns Z0=X0+i*Y0 the same
    as CENTROID(X,Y).

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:
Generated on Mon 18-Dec-2006 07:26:46 by m2html © 2003