📄 point.js
字号:
Point = Class.create();
Point.prototype = {
initialize: function(x, y){
this.x = x;
this.y = y;
this.coord = new Coordinate(x*1e16, y*1e16);
},
getCoord: function(){
return this.coord;
},
setCoord: function(coord){
this.coord = coord;
},
calcuDistance: function(point){
return Util.distanceByLnglat(this.x, this.y, point.x, point.y);
},
toString: function(){
return 'X:'+this.x+',Y:'+this.y;
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -