Triangle.getMidpoint

void getMidpoint(out graphene.point3_d.Point3D res)

Computes the coordinates of the midpoint of the given #graphene_triangle_t.

The midpoint G is the centroid of the triangle, i.e. the intersection of its medians.

Parameters

resreturn location for the coordinates of the midpoint