Tests: remove unnecessary fmod in BLI_convexhull_2d_test #118186

Manually merged
Campbell Barton merged 1 commits from ideasman42/blender:pr-fix-darwin-test into main 2024-02-13 08:26:43 +01:00
1 changed files with 2 additions and 2 deletions

View File

@ -226,7 +226,7 @@ TEST(convexhull_2d, Lines_AxisAligned)
}
blender::Array<float2> points_hull = convexhull_2d_as_array(points);
EXPECT_NEAR(std::fmod(convexhull_aabb_fit_hull_2d(points_hull), M_PI), 0.0f, ROTATION_EPS);
EXPECT_NEAR(convexhull_aabb_fit_hull_2d(points_hull), M_PI, ROTATION_EPS);
}
}
@ -241,7 +241,7 @@ TEST(convexhull_2d, Lines_AxisAligned)
}
blender::Array<float2> points_hull = convexhull_2d_as_array(points);
EXPECT_NEAR(std::fmod(convexhull_aabb_fit_hull_2d(points_hull), M_PI), 0.0f, ROTATION_EPS);
EXPECT_NEAR(convexhull_aabb_fit_hull_2d(points_hull), M_PI, ROTATION_EPS);
}
}
}