* Creates a new Position by adding offset * 通过添加偏移量创建新的位置
(offset: Position)
| 24 | * 通过添加偏移量创建新的位置 |
| 25 | */ |
| 26 | add(offset: Position): Position { |
| 27 | return new Position(this._x + offset._x, this._y + offset._y); |
| 28 | } |
| 29 | |
| 30 | /** |
| 31 | * Creates a new Position by subtracting another position |
no outgoing calls
no test coverage detected