From 604d437272bb068ca8470edc0af2ad698196f133 Mon Sep 17 00:00:00 2001 From: szdytom Date: Fri, 3 Nov 2023 14:12:44 +0800 Subject: [PATCH] [enhanced-vec3] fix `.dotXZ()` --- enhanced-vec3/index.mjs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/enhanced-vec3/index.mjs b/enhanced-vec3/index.mjs index 8dc1168..54bab07 100644 --- a/enhanced-vec3/index.mjs +++ b/enhanced-vec3/index.mjs @@ -29,7 +29,7 @@ Vec3.prototype.xzNorm = function xzNorm() { }; Vec3.prototype.dotXZ = function dotXZ(other) { - return (this.x * other.x) + (this.y * other.y); + return (this.x * other.x) + (this.z * other.z); }; Vec3.prototype.crossXZ = function crossXZ(other) {