From 68816b0ea4c173e3cf6f06363f5b3139159feeae Mon Sep 17 00:00:00 2001 From: loovjo Date: Sun, 23 Jul 2023 21:02:38 +0200 Subject: [PATCH] oopsie woopsie --- xen.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/xen.ts b/xen.ts index 43c764b..eb0cbea 100644 --- a/xen.ts +++ b/xen.ts @@ -55,15 +55,15 @@ class Vec3 { } mul(multiplicand: number): Vec3 { - return new Vec3(this.x * multiplicand, this.y * multiplicand, this.y * multiplicand); + return new Vec3(this.x * multiplicand, this.y * multiplicand, this.z * multiplicand); } div(divisor: number): Vec3 { - return new Vec3(this.x / divisor, this.y / divisor, this.y / divisor); + return new Vec3(this.x / divisor, this.y / divisor, this.z / divisor); } dot(v: Vec3): number { - return this.x * v.x + this.y * v.y; + return this.x * v.x + this.y * v.y + this.z * v.z; } length(): number {