Tests: remove unnecessary fmod in BLI_convexhull_2d_test

The intention was to accept both 0 and M_PI however this isn't needed
as the result is always M_PI.

See !118186 for details.
This commit is contained in:
Campbell Barton
2024-02-13 18:20:46 +11:00
parent da2ba2f3f6
commit 9ad127780a

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);
}
}
}