﻿<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/"><channel><title>博客园-月光林地-最新评论</title><link>http://www.cnblogs.com/lichkingct/CommentsRSS.aspx</link><description /><language>zh-cn</language><pubDate>Tue, 26 Oct 2010 11:59:22 GMT</pubDate><lastBuildDate>Tue, 26 Oct 2010 11:59:22 GMT</lastBuildDate><generator>cnblogs</generator><item><title>Re:45度斜角地图编辑器鼠标坐标的转换</title><link>http://www.cnblogs.com/lichkingct/archive/2009/07/28/1495805.html#1598302</link><dc:creator> hoha</dc:creator><author> hoha</author><pubDate>Tue, 28 Jul 2009 15:23:18 GMT</pubDate><guid>http://www.cnblogs.com/lichkingct/archive/2009/07/28/1495805.html#1598302</guid><description><![CDATA[这个方法能计算出来吗？
比如说（N,M）= (1,2)这个位置，当（X,Y）这个点在菱形的左半部分时，
N=int(x/TileW - y/TileH)= 1-0 =1;
M=int(x/TileW + y/TileH) = 1+1 =2;
是正确的==（1，2）

当（X,Y）在菱形右半部分时，
N=int(x/TileW - y/TileH)= 2-0 =2;
M=int(x/TileW + y/TileH) = 1+1 =2;
就出现错误了，==（2，2）


<br><br><div align=right><a style="text-decoration:none;" href="http://www.cnblogs.com/lichkingct/" target="_blank"> hoha</a> 2009-07-28 23:23 <a href="http://www.cnblogs.com/lichkingct/archive/2009/07/28/1495805.html#1598302#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item></channel></rss>
