public:
void Translate(float tx, float ty);
public void Translate(float tx, float ty);
abstract member Translate : single * single -> unit
Public Sub Translate (tx As Single, ty As Single)
參數
-
tx
-
Single
水平移位。 負值會將物件向左移動,而正值則向右移動。
-
ty
-
Single
垂直移位。 負值會將物件向下移動,而正值則會向上移動。