封鎖 >utils >座標 >翻譯

utils.Coordinate.translate() 方法

根據指定的位移翻譯這個座標。。

Signature:

translate(tx: number, ty: number): Coordinate;

參數

參數 類型 說明
塔克 數字 要翻譯 x 的值。
數字 代表 y 翻譯的值。

傳回:

座標

此座標會在翻譯後完成。