Centeroid of the triangle with Vertices (x1, y1, z1), (x2, y2, z2), and (x3, y3, z3) is given by,
In vector algebra, ‘x’ consider as a coefficient of \(\hat i\) and ‘y’ as a coefficient of \(\hat j\) and ‘z’ as a coefficient of \(\hat k\) So the position vector of the centroid,
So the location of the centroid is
And the vector is,