- 注册时间
- 2013-10-14
- 最后登录
- 2013-12-16
- 阅读权限
- 20
- 积分
- 132
- 精华
- 0
- 帖子
- 44
|
intersection:function(t){
var s = this;
var ix = s.x > t.x ? s.x : t.x;
var iy = s.y > t.y ? s.y : t.y;
var ax = s.right > t.right ? t.right : s.right;
var ay = s.bottom > t.bottom ? t.bottom : s.bottom;
if(ix <= ax && iy <= ay){
return new LRectangle(ix,iy,ax,ay);
}else{
return new LRectangle(0,0,0,0);
}
}, |
|