Computes the centroid of a triangle defined by three vertices.
the output vector to store the result.
the first vertex of the triangle.
the second vertex of the triangle.
the third vertex of the triangle.
the output vector containing the centroid of the triangle.
Computes the centroid of a triangle defined by three vertices.