跳到主要内容

shift

移动位置生成新的位置

声明

Location shift(int x_count = 0, int y_count = 0)

参数

参数名描述
x_countx方向移动量
y_county方向移动量

返回值

新的位置(Location实例)

使用方式

返回文档