()
| 106 | return new Vec2(Math.sign(this.x), Math.sign(this.y)); |
| 107 | } |
| 108 | abs(): Vec2 { |
| 109 | return new Vec2(Math.abs(this.x), Math.abs(this.y)); |
| 110 | } |
| 111 | |
| 112 | grow(amount: Vec2): Vec2 { |
| 113 | return this.add(this.sign().mul(amount)); |
no outgoing calls
no test coverage detected