From 0ba447ee95c31e132b4ca91671dfe10ad29bca32 Mon Sep 17 00:00:00 2001 From: omniscient <17525998+omnisci3nce@users.noreply.github.com> Date: Thu, 4 Apr 2024 19:49:01 +1100 Subject: fix weird linebreak --- src/maths/maths.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/maths/maths.h b/src/maths/maths.h index d832739..b6e380c 100644 --- a/src/maths/maths.h +++ b/src/maths/maths.h @@ -59,8 +59,8 @@ static inline vec2 vec2_create(f32 x, f32 y) { return (vec2){ x, y }; } static inline f32 quat_dot(quat a, quat b) { return a.x * b.x + a.y * b.y + a.z * b.z + a.w * b.w; } static inline quat quat_normalise(quat a) { - f32 length = sqrtf(quat_dot(a, a) // same as len squared - ); + f32 length = sqrtf(quat_dot(a, a)); // same as len squared + return (quat){ a.x / length, a.y / length, a.z / length, a.w / length }; } -- cgit v1.2.3-70-g09d2