-------------------------------------------------------------------------- Compute a centroid from a set of vertices. Since version 2. -------------------------------------------------------------------------- Form: c = Centroid( v ) -------------------------------------------------------------------------- ------ Inputs ------ v (3,:) Polygon vertices ------- Outputs ------- c (3,1) Centroid --------------------------------------------------------------------------