Refactors GJK tetrahedron handling

Updates the `handle_tetrahedron` function to use const references for simplex points, improving efficiency and readability.

Corrects a potential bug where the `simplex` variable wasn't being correctly updated when recursively calling `handle_triangle`.

Also, const-qualifies `point_to_same_direction` for better safety.
This commit is contained in:
2025-11-09 14:15:32 +03:00
parent 31cc1116ae
commit 1e540862a0
3 changed files with 17 additions and 17 deletions

View File

@@ -9,7 +9,7 @@
namespace omath
{
struct Hsv
struct Hsv final
{
float hue{};
float saturation{};