From 9531fef017e996e4b75f14f68f50604dfbfe98bf Mon Sep 17 00:00:00 2001 From: Benjamin Perseghetti Date: Tue, 14 May 2024 19:29:37 -0400 Subject: [PATCH] Fix linting. Signed-off-by: Benjamin Perseghetti --- include/gz/math/MassMatrix3.hh | 3 ++- src/MassMatrix3_TEST.cc | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/include/gz/math/MassMatrix3.hh b/include/gz/math/MassMatrix3.hh index eeabb955..3d63eb70 100644 --- a/include/gz/math/MassMatrix3.hh +++ b/include/gz/math/MassMatrix3.hh @@ -999,7 +999,8 @@ namespace gz // Diagonal matrix L with principal moments T radius2 = std::pow(_radius, 2); Matrix3 L; - L(0, 0) = 3.0 * this->mass * (4.0 * radius2 + std::pow(_length, 2)) / 80.0; + L(0, 0) = 3.0 * this->mass * (4.0 * radius2 + + std::pow(_length, 2)) / 80.0; L(1, 1) = L(0, 0); L(2, 2) = 3.0 * this->mass * radius2 / 10.0; Matrix3 R(_rot); diff --git a/src/MassMatrix3_TEST.cc b/src/MassMatrix3_TEST.cc index 9fdf948c..f51b4836 100644 --- a/src/MassMatrix3_TEST.cc +++ b/src/MassMatrix3_TEST.cc @@ -860,7 +860,8 @@ TEST(MassMatrix3dTest, SetFromConeZ) math::MassMatrix3d m; EXPECT_TRUE(m.SetFromConeZ(mass, length, radius, q0)); - double ixx = (3.0 / 80.0) * mass * (4.0 * std::pow(radius, 2) + std::pow(length, 2)); + double ixx = (3.0 / 80.0) * mass * (4.0 * std::pow(radius, 2) + + std::pow(length, 2)); double iyy = ixx; double izz = (3.0 / 10.0) * mass * std::pow(radius, 2); const math::Vector3d ixxyyzz(ixx, iyy, izz);