procedure centroid

Returns the centroid of X in the variables x, y, and z. y and z are optional.

Syntax
centroid X, VARIABLE x [, VARIABLE y [, VARIABLE z]]