[enhanced-vec3] fix .dotXZ()

This commit is contained in:
方而静 2023-11-03 14:12:44 +08:00
parent 38c74502f7
commit 604d437272
Signed by: szTom
GPG Key ID: 072D999D60C6473C

View File

@ -29,7 +29,7 @@ Vec3.prototype.xzNorm = function xzNorm() {
}; };
Vec3.prototype.dotXZ = function dotXZ(other) { 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) { Vec3.prototype.crossXZ = function crossXZ(other) {