From 6cbaaabd6a3cc7ff8cbf6e0de222da46fb83cb80 Mon Sep 17 00:00:00 2001 From: Faerbit Date: Wed, 3 Jun 2020 23:14:10 +0200 Subject: [PATCH] Fix significant typo. --- vec3.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vec3.h b/vec3.h index 48dfe9c..04690c7 100644 --- a/vec3.h +++ b/vec3.h @@ -89,7 +89,7 @@ inline Vec3 operator/(const Vec3& v, double t) { inline double dot(const Vec3 &u, const Vec3& v) { return u.e[0] * v.e[0] + u.e[1] * v.e[1] - + u.e[2] * v.e[1]; + + u.e[2] * v.e[2]; } inline Vec3 cross(const Vec3 &u, const Vec3& v) {