From 07c1573d05f6fe71d6285c9b6d9518c1a12f6fde Mon Sep 17 00:00:00 2001 From: Benjamin Perseghetti Date: Mon, 20 May 2024 11:06:12 -0400 Subject: [PATCH] Apply suggestions from code review MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Alejandro Hernández Cordero Signed-off-by: Benjamin Perseghetti --- src/Cone.cc | 3 ++- src/Cone_TEST.cc | 2 +- src/Geometry_TEST.cc | 2 +- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/src/Cone.cc b/src/Cone.cc index 70bac850c..e3c41daa5 100644 --- a/src/Cone.cc +++ b/src/Cone.cc @@ -16,8 +16,9 @@ * limitations under the License. * */ -#include #include +#include +#include #include #include diff --git a/src/Cone_TEST.cc b/src/Cone_TEST.cc index 41295e34a..d09e87da7 100644 --- a/src/Cone_TEST.cc +++ b/src/Cone_TEST.cc @@ -208,7 +208,7 @@ TEST(DOMCone, CalculateInertial) cone.SetRadius(r); double expectedMass = cone.Shape().Volume() * density; - double ixxIyy = (3/80.0) * expectedMass * (4*r*r + l*l); + double ixxIyy = (3 / 80.0) * expectedMass * (4 * r * r + l * l); double izz = 3.0 * expectedMass * r * r / 10.0; gz::math::MassMatrix3d expectedMassMat( diff --git a/src/Geometry_TEST.cc b/src/Geometry_TEST.cc index 204d3fc29..7f4da1f1b 100644 --- a/src/Geometry_TEST.cc +++ b/src/Geometry_TEST.cc @@ -426,7 +426,7 @@ TEST(DOMGeometry, CalculateInertial) cone.SetRadius(r); expectedMass = cone.Shape().Volume() * density; - double ixxIyy = (3/80.0) * expectedMass * (4*r*r + l*l); + double ixxIyy = (3 / 80.0) * expectedMass * (4 * r * r + l * l); double izz = 3.0 * expectedMass * r * r / 10.0; expectedMassMat.SetMass(expectedMass);