Centroid Cellzilla2D Home

Description

Finds the center of mass of a cell or polygon.

Needs["Cellzilla2D`"];

Return Value

Centroid[{v1,v2, ...}] - returns the center of mass of the specified polygon, where the vi are vertices of the polygon.

Centroid[tissue, n] - returns the center of mass of cell n.

Centroid[tissue, {n1,n2,...}] - returns the center of mass of cells n1,n2,..

Centroid[tissue] - returns the center of mass of all cells.

Options

Example

[ Download Example as Zipped Mathematica Notebook ]

Implementation Notes

See Also



[2009-06-21T16:45:43-0700 ]