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) {