centroid edit page

compute the centroid of a 2d polygon in 3d

Syntax

c = centroid(v)

Input

v vector3d

Output

c vector3d