(scalar: number)
| 45 | return new Vec2(this.x * scalar, this.y * scalar); |
| 46 | } |
| 47 | divScalar(scalar: number): Vec2 { |
| 48 | return new Vec2(this.x / scalar, this.y / scalar); |
| 49 | } |
| 50 | |
| 51 | dot(vec: Vec2): number { |
| 52 | return this.x * vec.x + this.y * vec.y; |
no outgoing calls
no test coverage detected