There was an error while loading. Please reload this page.
1 parent 1399fd2 commit d854a85Copy full SHA for d854a85
1 file changed
src/RotationSpline_TEST.cc
@@ -51,8 +51,8 @@ TEST(RotationSplineTest, RotationSpline)
51
s.AutoCalculate(true);
52
53
// ::Interpolate
54
- EXPECT_TRUE(s.Interpolate(0.5) ==
55
- math::Quaterniond(0.999181, 0.0184352, 0.030948, 0.0184352));
+ math::Quaterniond expected(0.999181, 0.0184352, 0.030948, 0.0184352);
+ EXPECT_TRUE(s.Interpolate(0.5).Equal(expected, 1e-6));
56
57
58
s.AddPoint(math::Quaterniond(.4, .4, .4));
0 commit comments