From 08e7212a1fc4af1e0b58e69ff4707bc34cc3e84d Mon Sep 17 00:00:00 2001 From: Benjamin Perseghetti Date: Fri, 17 May 2024 12:52:59 -0400 Subject: [PATCH] fix mass matrix test for cone. Signed-off-by: Benjamin Perseghetti --- src/MassMatrix3_TEST.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/MassMatrix3_TEST.cc b/src/MassMatrix3_TEST.cc index f51b4836..da9fcc9c 100644 --- a/src/MassMatrix3_TEST.cc +++ b/src/MassMatrix3_TEST.cc @@ -868,7 +868,7 @@ TEST(MassMatrix3dTest, SetFromConeZ) EXPECT_EQ(m.DiagonalMoments(), ixxyyzz); EXPECT_EQ(m.OffDiagonalMoments(), math::Vector3d::Zero); - double density = mass / (GZ_PI * radius * radius * length); + double density = mass / (GZ_PI * radius * radius * length / 3.0); math::Material mat(density); EXPECT_DOUBLE_EQ(density, mat.Density()); math::MassMatrix3d m1;