From 9eb1a5b481a06d7a61ab5b56fa99a5e6cbe18152 Mon Sep 17 00:00:00 2001 From: Irlan <-> Date: Thu, 3 May 2018 20:13:51 -0300 Subject: [PATCH] rename function --- include/bounce/dynamics/contacts/contact_cluster.h | 2 +- src/bounce/dynamics/contacts/contact_cluster.cpp | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/include/bounce/dynamics/contacts/contact_cluster.h b/include/bounce/dynamics/contacts/contact_cluster.h index 2635cd3..f8c0d44 100644 --- a/include/bounce/dynamics/contacts/contact_cluster.h +++ b/include/bounce/dynamics/contacts/contact_cluster.h @@ -93,7 +93,7 @@ private: void AddCluster(const b3Vec3& centroid); // - u32 BestCluster(const b3Vec3& point) const; + u32 FindCluster(const b3Vec3& point) const; u32 m_iterations; diff --git a/src/bounce/dynamics/contacts/contact_cluster.cpp b/src/bounce/dynamics/contacts/contact_cluster.cpp index ae65b31..3646a5b 100644 --- a/src/bounce/dynamics/contacts/contact_cluster.cpp +++ b/src/bounce/dynamics/contacts/contact_cluster.cpp @@ -344,7 +344,7 @@ void b3ClusterSolver::AddCluster(const b3Vec3& centroid) return; } - u32 bestIndex = BestCluster(centroid); + u32 bestIndex = FindCluster(centroid); b3Cluster& bestCluster = m_clusters[bestIndex]; // Should we merge the cluster? @@ -364,7 +364,7 @@ void b3ClusterSolver::AddCluster(const b3Vec3& centroid) m_clusters.PushBack(c); } -u32 b3ClusterSolver::BestCluster(const b3Vec3& point) const +u32 b3ClusterSolver::FindCluster(const b3Vec3& point) const { u32 bestIndex = 0; float32 bestValue = B3_MAX_FLOAT; @@ -410,7 +410,7 @@ void b3ClusterSolver::Solve() for (u32 i = 0; i < m_observations.Count(); ++i) { b3Observation& obs = m_observations[i]; - obs.cluster = BestCluster(obs.point); + obs.cluster = FindCluster(obs.point); } // Compute the new cluster centroids.