(a: Vec3)
| 40 | } |
| 41 | |
| 42 | add(a: Vec3): Vec3 { return new Vec3(this.x + a.x, this.y + a.y, this.z + a.z); } |
| 43 | sub(a: Vec3): Vec3 { return new Vec3(this.x - a.x, this.y - a.y, this.z - a.z); } |
| 44 | dot(a: Vec3): number { return this.x * a.x + this.y * a.y + this.z * a.z; } |
| 45 | mul(a: number): Vec3 { return new Vec3(this.x * a, this.y * a, this.z * a); } |
no outgoing calls
no test coverage detected