From 20aecac2aef6d5a71c140624c34ca0dda5095fa1 Mon Sep 17 00:00:00 2001 From: Orange Date: Thu, 13 Nov 2025 16:16:23 +0300 Subject: [PATCH] Refactors vertex parameter name Updates the `make_face` function to use `vertexes` instead of `verts` for clarity and consistency in naming conventions. --- include/omath/collision/epa_algorithm.hpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/include/omath/collision/epa_algorithm.hpp b/include/omath/collision/epa_algorithm.hpp index 0b5e806..55a26a1 100644 --- a/include/omath/collision/epa_algorithm.hpp +++ b/include/omath/collision/epa_algorithm.hpp @@ -213,11 +213,11 @@ namespace omath::collision } [[nodiscard]] - static Face make_face(const std::vector& verts, int i0, int i1, int i2) + static Face make_face(const std::vector& vertexes, int i0, int i1, int i2) { - const Vertex& a0 = verts[i0]; - const Vertex& a1 = verts[i1]; - const Vertex& a2 = verts[i2]; + const Vertex& a0 = vertexes[i0]; + const Vertex& a1 = vertexes[i1]; + const Vertex& a2 = vertexes[i2]; Vertex n = (a1 - a0).cross(a2 - a0); if (n.dot(n) <= 1e-30f) {