From d06eb2a1aa5b02a3de415a9070cbab224db86e0e Mon Sep 17 00:00:00 2001 From: KiraFlux <153020210+KiraFlux@users.noreply.github.com> Date: Sun, 19 Oct 2025 10:17:38 +0300 Subject: [PATCH] Quaternion::fromBetweenVectors: pass u and v as const references (#21) --- flix/quaternion.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/flix/quaternion.h b/flix/quaternion.h index 29a3d04..81eb79f 100644 --- a/flix/quaternion.h +++ b/flix/quaternion.h @@ -45,7 +45,7 @@ public: cx * cy * sz - sx * sy * cz); } - static Quaternion fromBetweenVectors(Vector u, Vector v) { + static Quaternion fromBetweenVectors(const Vector& u, const Vector& v) { float dot = u.x * v.x + u.y * v.y + u.z * v.z; float w1 = u.y * v.z - u.z * v.y; float w2 = u.z * v.x - u.x * v.z;