function lrange(x1,y1,r,a)
local x = math.ceil(r*math.sin(math.rad(a)))
local y = -math.ceil(r*math.cos(math.rad(a)))
x = x + x1
y = y + y1
return x,y
end
function main()
r = 100
lx,ly = 326,466
for i = 0,360,10 do
rx,ry = lrange(lx,ly,r,i)
clickMove(lx, ly, rx, ry, 10)
end
end
x1,y1为起点坐标,r是半径,a是角度(范围0-360)
测试代码为每10度画一条线.clickMove函数手册内有