From 24e856990504b5fe36664dbc5418b9d585cff3f1 Mon Sep 17 00:00:00 2001 From: Oleg Kalachev Date: Sat, 20 Apr 2024 10:57:32 +0300 Subject: [PATCH] Make Vector methods arguments more consistent --- flix/vector.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/flix/vector.h b/flix/vector.h index 7602ac5..c1433e1 100644 --- a/flix/vector.h +++ b/flix/vector.h @@ -78,10 +78,10 @@ public: return acos(constrain(dot(a, b) / (a.norm() * b.norm()), -1, 1)); } - static Vector angularRatesBetweenVectors(const Vector& u, const Vector& v) { - Vector direction = cross(u, v); + static Vector angularRatesBetweenVectors(const Vector& a, const Vector& b) { + Vector direction = cross(a, b); direction.normalize(); - float angle = angleBetweenVectors(u, v); + float angle = angleBetweenVectors(a, b); return direction * angle; }