|
楼主 |
发表于 2013-5-1 10:14:45
|
显示全部楼层
function on.paint(gc)
start_fwj=36.8596
start_r=100
end_r=300
hqx_l=80
xyd_l=60
var.store("start_fwj",start_r)
var.store("start_r",start_r)
var.store("end_r",end_r)
var.store("hqx_l",hqx_l)
var.store("xyd_l",xyd_l)
var.store("l",l)
local zl_x
zl_x=math.eval("nint(cos(pi*start_fwj/180+l/start_r+(start_r-end_r)*l*l/(2*start_r*end_r*hqx_l),l,0,xyd_l)")
gc:drawString("坐标N:"..zl_x,50,120)
gc:drawString("坐标E:",180,120)
gc:drawString("方位角: ",50,160)
gc:drawString("角度显示:",50,200)
end
问题依旧 |
|