Feature/more constexpr (#125)

* added constexpr

* fix

* improved stuff

* added const

* improvement

* fix

* fix

* patch
This commit is contained in:
2025-12-24 02:32:14 +03:00
committed by GitHub
parent 897484bea1
commit d935caf1a4
36 changed files with 543 additions and 399 deletions

View File

@@ -30,12 +30,13 @@ TEST(EpaExtra, DegenerateFaceHandled)
Simplex s;
s = { Vector3f{0.01f, 0.f, 0.f}, Vector3f{0.02f, 0.f, 0.f}, Vector3f{0.03f, 0.f, 0.f}, Vector3f{0.0f, 0.0f, 0.01f} };
DegenerateCollider a, b;
constexpr DegenerateCollider a;
constexpr DegenerateCollider b;
Epa::Params params;
params.max_iterations = 4;
params.tolerance = 1e-6f;
auto result = Epa::solve(a, b, s, params);
const auto result = Epa::solve(a, b, s, params);
// The algorithm should either return a valid result or gracefully exit (not crash)
if (result)