get_midpoint


Description:

public Point3D get_midpoint ()

Computes the coordinates of the midpoint of the given Triangle.

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

Parameters:

this

a Triangle

res

return location for the coordinates of the midpoint