diff --git a/spheroid.cpp b/spheroid.cpp index 2b31266..88dbb76 100644 --- a/spheroid.cpp +++ b/spheroid.cpp @@ -55,8 +55,8 @@ void Spheroid::check_vertical_plan_collision(double& abscissa) { Cuboid Spheroid::max_bounding_box() const { double max_radius = sqrt((3./4.) * V / PI / min_p); double max_height = init_p; - Point _bd1(max_radius, max_radius, max_height); - Point _bd2(-max_radius, -max_radius, -max_height); + Point _bd1(max_radius, max_height, max_radius); + Point _bd2(-max_radius, -max_height, -max_radius); return Cuboid(_bd1, _bd2); }