back to static

This commit is contained in:
2025-12-03 13:34:35 +03:00
parent d4d8f70fff
commit 3685f13344
2 changed files with 11 additions and 18 deletions

View File

@@ -45,7 +45,7 @@ TEST(UnitTestEpa, TestCollisionTrue)
auto pool = std::make_shared<std::pmr::monotonic_buffer_resource>(1024);
params.max_iterations = 64;
params.tolerance = 1e-4f;
auto epa = EPA(pool).solve(A, B, gjk.simplex, params);
auto epa = EPA::solve(A, B, gjk.simplex, params, pool);
ASSERT_TRUE(epa.has_value()) << "EPA should converge";
// Normal is unit
@@ -119,7 +119,7 @@ TEST(UnitTestEpa, TestCollisionTrue2)
params.max_iterations = 64;
params.tolerance = 1e-4f;
auto pool = std::make_shared<std::pmr::monotonic_buffer_resource>(1024);
auto epa = EPA(pool).solve(A, B, gjk.simplex, params);
auto epa = EPA::solve(A, B, gjk.simplex, params, pool);
ASSERT_TRUE(epa.has_value()) << "EPA should converge";
// Normal is unit-length