R3Box:: R3Box(const R3Point& minpt, const R3Point& maxpt) : minpt(minpt), maxpt(maxpt) { centroid = R3Point(XCenter(), YCenter(), ZCenter()); }
R3Box:: R3Box(const R3Box& box) : minpt(box.minpt), maxpt(box.maxpt) { centroid = R3Point(XCenter(), YCenter(), ZCenter()); }
R3Box:: R3Box(double xmin, double ymin, double zmin, double xmax, double ymax, double zmax) : minpt(xmin, ymin, zmin), maxpt(xmax, ymax, zmax) { centroid = R3Point(XCenter(), YCenter(), ZCenter()); }
const R3Point R3Box:: Centroid (void) const { // Return center point return R3Point(XCenter(), YCenter(), ZCenter()); }