\begin{ccRefFunction}{centroid} \ccFunction{Point_2 centroid( const Point_2& p, const Point_2& q, const Point_2& r);} {compute the centroid of the points $p$, $q$, and $r$.} \ccFunction{Point_2 centroid( const Point_2& p, const Point_2& q, const Point_2& r, const Point_2& s);} {compute the centroid of the points $p$, $q$, $r$, and $s$.} \ccFunction{Point_2 centroid( const Triangle_2& t);} {compute the centroid of the triangle $t$.} \ccFunction{Point_3 centroid( const Point_3& p, const Point_3& q, const Point_3& r);} {compute the centroid of the points $p$, $q$, and $r$.} \ccFunction{Point_3 centroid( const Point_3& p, const Point_3& q, const Point_3& r, const Point_3& s);} {compute the centroid of the points $p$, $q$, $r$, and $s$.} \ccFunction{Point_3 centroid( const Triangle_3& t);} {compute the centroid of the triangle $t$.} \ccFunction{Point_3 centroid( const Tetrahedron_3& t);} {compute the centroid of the tetrahedron $t$.} \ccSeeAlso \ccRefIdfierPage{CGAL::barycenter} \end{ccRefFunction}