游戏坐标和窗口坐标的变换公式
W(x)=(G(x)-G(y))*cos(α/2)
W(y)=(G(x)+G(y))*sin(α/2)
G(x)=(W(y)*cos(α/2)+W(x)*sin(α/2))/(sinα)
G(y)=(W(y)*cos(α/2)-W(x)*sin(α/2))/(sinα)
由于α=60 导致
cos(α/2) = sinα
sin(α/2) = cosα
相关开发知识可以参考深蓝博文:http://www.cnblogs.com/alamiye010/archive/2009/06/17/1505344.html
Powered By D&J (URL:http://www.cnblogs.com/Areas/)