oopsie woopsie

This commit is contained in:
loovjo 2023-07-23 21:02:38 +02:00
parent d084c6097b
commit 68816b0ea4

6
xen.ts
View File

@ -55,15 +55,15 @@ class Vec3 {
} }
mul(multiplicand: number): 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 { 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 { 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 { length(): number {