/* math/boundingbox3f.cc This file is part of the Osirion project and is distributed under the terms of the GNU General Public License version 2 */ #include "math/boundingbox3f.h" namespace math { BoundingBox3f::BoundingBox3f() : boundingbox_min(), boundingbox_max() { } BoundingBox3f::BoundingBox3f(const Vector3f ¢er) : boundingbox_min(center), boundingbox_max(center) { } void BoundingBox3f::assign(const BoundingBox3f & other) { boundingbox_min.assign(other.boundingbox_min); boundingbox_max.assign(other.boundingbox_max); } void BoundingBox3f::assign(const Vector3f ¢er) { boundingbox_min.assign(center); boundingbox_max.assign(center); } void BoundingBox3f::assign(const Vector3f & min, const Vector3f & max) { boundingbox_min.assign(min); boundingbox_max.assign(max); } void BoundingBox3f::assign(const float min, const float max) { boundingbox_min.assign(min, min, min); boundingbox_max.assign(max, max, max); } void BoundingBox3f::clear() { boundingbox_min.clear(); boundingbox_max.clear(); } } // namespace math