From 260c166e685c95dad094ace771f54cebc4502f63 Mon Sep 17 00:00:00 2001 From: Artem Zyktin Date: Wed, 3 Jun 2026 17:47:15 +0800 Subject: [PATCH] Add naive implementation --- src/naive/naive_vec4.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/naive/naive_vec4.h b/src/naive/naive_vec4.h index ae3ff46..1e37c52 100644 --- a/src/naive/naive_vec4.h +++ b/src/naive/naive_vec4.h @@ -54,6 +54,11 @@ private: return a.x() * b.x() + a.y() * b.y() + a.z() * b.z(); } +[[nodiscard]] inline float dot4(vec4 a, vec4 b) noexcept +{ + return a.x() * b.x() + a.y() * b.y() + a.z() * b.z() + a.w() * b.w(); +} + [[nodiscard]] inline vec4 cross3(vec4 a, vec4 b) noexcept { return {