()
| 17 | } |
| 18 | |
| 19 | public asRect():Rectangle { |
| 20 | if (this.isEmpty()) { |
| 21 | return new Rectangle(0, 0, 0, 0); |
| 22 | } |
| 23 | return new Rectangle(this._xBegin, |
| 24 | this._yBegin, |
| 25 | this._xEnd - this._xBegin, |
| 26 | this._yEnd - this._yBegin); |
| 27 | } |
| 28 | |
| 29 | public isEmpty():boolean { |
| 30 | return this._xBegin === null || this._yBegin === null || |