* Convert local point to global * 本地坐标转全局坐标
(ax: number = 0, ay: number = 0, outPoint?: Point)
| 781 | * 本地坐标转全局坐标 |
| 782 | */ |
| 783 | public localToGlobal(ax: number = 0, ay: number = 0, outPoint?: Point): Point { |
| 784 | if (this._pivotAsAnchor) { |
| 785 | ax += this._pivotX * this._width; |
| 786 | ay += this._pivotY * this._height; |
| 787 | } |
| 788 | |
| 789 | outPoint = outPoint || new Point(); |
| 790 | outPoint.x = ax; |
| 791 | outPoint.y = ay; |
| 792 | |
| 793 | if (this._displayObject) { |
| 794 | return this._displayObject.localToGlobal(outPoint, outPoint); |
| 795 | } |
| 796 | |
| 797 | return outPoint; |
| 798 | } |
| 799 | |
| 800 | /** |
| 801 | * Convert global point to local |
no outgoing calls
no test coverage detected