?? coordinate.js
字號:
?Coordinate = Class.create();
Coordinate.prototype = {
initialize: function(x, y){
this.x = x;
this.y = y;
},
isSame: function(coord){
if (this.x == coord.x && this.y == coord.y)
return true;
return false;
},
getBound: function(width, height){
return new Bound(this.x-width/2, this.x+width/2, this.y-height/2, this.y+height/2);
},
getPoint: function(){
return new Point(this.x/1e16,this.y/1e16);
},
toString: function(){
return 'X:'+this.x+',Y:'+this.y;
}
}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -