From a96893fabb4acc9a917f38cd78aae6cdc845ad7f Mon Sep 17 00:00:00 2001 From: Ben Date: Sun, 30 Dec 2018 19:43:23 +0000 Subject: [PATCH] Fixed vec4 dotproduct taking a vec3 --- src/crumpet-engine/math.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/crumpet-engine/math.h b/src/crumpet-engine/math.h index 1d2ff6d..6c587c6 100644 --- a/src/crumpet-engine/math.h +++ b/src/crumpet-engine/math.h @@ -19,7 +19,7 @@ struct Vec4 { template Vec4(P all) : x(all), y(all), z(all), w(all) {} Vec4() : x(0), y(0), z(0), w(0) {} - inline Vec4& dot(const Vec3& v) { + inline Vec4& dot(const Vec4& v) { return (x * v.x + y * v.y + z * v.z + w * v.w); } inline const Vec4& operator+() {