Triangle.getMidpoint

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.

class Triangle
void
getMidpoint
()

Parameters

res Point3D

return location for the coordinates of the midpoint

Meta