//CLASS:几何类型:矩形 //x1,y1坐下角的坐标,x2,y2右上角的坐标 function Rectangle(x1, y1,x2,y2 ) { Geometry.apply(this, arguments); this.leftupX = x1; this.leftupY = y2; this.rightupX= x2; this.rightupY= y2; this.rightdownX=x2; this.rightdownY=y1; this.leftdownX=x1; this.leftdownY=y1; }; Rectangle.prototype = new Rectangle(); Rectangle.prototype.geoType = "Rectangle";