Skip to content

Commit

Permalink
fix mass matrix test for cone.
Browse files Browse the repository at this point in the history
Signed-off-by: Benjamin Perseghetti <[email protected]>
  • Loading branch information
bperseghetti committed May 17, 2024
1 parent d5f7070 commit 08e7212
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/MassMatrix3_TEST.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 08e7212

Please sign in to comment.