- public Point centroid() {
- return new Point((v1().p.x+v2().p.x+v3().p.x)/3,
- (v1().p.y+v2().p.y+v3().p.y)/3,
- (v1().p.z+v2().p.z+v3().p.z)/3); }
- public float diameter() {
- // FIXME: what is this supposed to be?
- return Math.max(Math.max(e1().length(), e2().length()), e3().length()) / 2;
- }