centroid3 static method
Computes three times the centroid of the triangle p1-p2-p3. The factor of 3 is left in to permit division to be avoided until later.
Implementation
static void centroid3(
Coordinate p1, Coordinate p2, Coordinate p3, Coordinate c) {
c.x = p1.x + p2.x + p3.x;
c.y = p1.y + p2.y + p3.y;
return;
}