From 69212ab83727371bddc8e79d75c9a28b8f92b372 Mon Sep 17 00:00:00 2001 From: Justin Carpentier <justin.carpentier@inria.fr> Date: Mon, 27 Jan 2020 17:49:30 +0100 Subject: [PATCH] core: fix variable naming --- include/hpp/fcl/BV/AABB.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/include/hpp/fcl/BV/AABB.h b/include/hpp/fcl/BV/AABB.h index d79f76fe..9b1ed094 100644 --- a/include/hpp/fcl/BV/AABB.h +++ b/include/hpp/fcl/BV/AABB.h @@ -230,16 +230,16 @@ static inline AABB translate(const AABB& aabb, const Vec3f& t) return res; } -static inline AABB rotate(const AABB& aabb, const Matrix3f& t) +static inline AABB rotate(const AABB& aabb, const Matrix3f& R) { - AABB res (t * aabb.min_); + AABB res (R * aabb.min_); Vec3f corner (aabb.min_); const std::size_t bit[3] = { 1, 2, 4 }; for (std::size_t ic = 1; ic < 8; ++ic) { // ic = 0 corresponds to aabb.min_. Skip it. for (std::size_t i = 0; i < 3; ++i) { corner[i] = (ic && bit[i]) ? aabb.max_[i] : aabb.min_[i]; } - res += t * corner; + res += R * corner; } return res; } -- GitLab