(factor)
| 11 | return new Vec(this.x - other.x, this.y - other.y); |
| 12 | } |
| 13 | times(factor) { |
| 14 | return new Vec(this.x * factor, this.y * factor); |
| 15 | } |
| 16 | get length() { |
| 17 | return Math.sqrt(this.x * this.x + this.y * this.y); |
| 18 | } |
no outgoing calls
no test coverage detected