summaryrefslogtreecommitdiff
path: root/src/maths/maths.h
diff options
context:
space:
mode:
authoromniscient <17525998+omnisci3nce@users.noreply.github.com>2024-04-04 19:49:01 +1100
committeromniscient <17525998+omnisci3nce@users.noreply.github.com>2024-04-04 19:49:01 +1100
commit0ba447ee95c31e132b4ca91671dfe10ad29bca32 (patch)
tree0f82c8a13959abac2f34748d308b0c563f29369d /src/maths/maths.h
parent51b4a3fc75351d6ecd2142c228d31a1f7ed52152 (diff)
fix weird linebreak
Diffstat (limited to 'src/maths/maths.h')
-rw-r--r--src/maths/maths.h4
1 files 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 };
}