oopsie woopsie
This commit is contained in:
parent
d084c6097b
commit
68816b0ea4
6
xen.ts
6
xen.ts
|
@ -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 {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user