首页 新闻 会员 周边

帮忙看下,矩形排列问题!!横向排列,纵向排列!

0
悬赏园豆:20 [已关闭问题] 关闭于 2012-09-05 09:10

大多数帖子都是怎么画矩形判断相交或者相切!!其他的矩形情况怎么判断啊!!
横向排列的:

纵向排列的:

混合排列的:

c#
wys0301mm的主页 wys0301mm | 初学一级 | 园豆:12
提问于:2012-09-04 11:18
< >
分享
所有回答(1)
0
function (rect)   
        {  
            this.tthis.x = this.left;  
            this.tthis.y = this.top;  
                      
            this.trect.x = rect.left;  
            this.trect.y = rect.top;  
              
            return (this.tthis.x < this.trect.x + rect.width &&  
                      this.trect.x < this.tthis.x + this.width &&  
                      this.tthis.y < this.trect.y + rect.height &&  
                      this.trect.y < this.tthis.y + this.height);  
        }  
today4king | 园豆:3499 (老鸟四级) | 2012-09-04 11:29

能说明下吗?没看明白

支持(0) 反对(0) wys0301mm | 园豆:12 (初学一级) | 2012-09-04 11:42

没人能解答?

支持(0) 反对(0) wys0301mm | 园豆:12 (初学一级) | 2012-09-10 14:23
清除回答草稿
   您需要登录以后才能回答,未注册用户请先注册