function BoundingBox(B,D,C,A){this.one=new Point(B,D);this.two=new Point(B+C,D+A)}BoundingBox.prototype.getX1=function(){return this.one.getX()};BoundingBox.prototype.getY1=function(){return this.one.getY()};BoundingBox.prototype.getPoint1=function(){return this.one};BoundingBox.prototype.getPoint2=function(){return this.two};BoundingBox.prototype.getX2=function(){return this.two.getX()};BoundingBox.prototype.getY2=function(){return this.two.getY()};BoundingBox.prototype.getWidth=function(){return this.getX2()-this.getX1()};BoundingBox.prototype.getHeight=function(){return this.getY2()-this.getY1()};BoundingBox.prototype.contains=function(A,E,C){var B=(polygonNubSize/2)/E;var F=A.getX()/E;var D=A.getY()/C;if((F>=(this.getX1()-B))&&(F<=(this.getX2()+B))&&(D>=(this.getY1()-B))&&(D<=(this.getY2()+B))){return true}else{return false}};BoundingBox.prototype.findCorner=function(E,D,C){var B=(polygonNubSize/2)/D;var A=E.getX()/D;var F=E.getY()/C;if((A>=(this.getX1()-B))&&(A<=(this.getX1()+B))&&(F>=(this.getY1()-B))&&(F<=(this.getY1()+B))){return corners.upperLeft}else{if((A>=(this.getX2()-B))&&(A<=(this.getX2()+B))&&(F>=(this.getY1()-B))&&(F<=(this.getY1()+B))){return corners.upperRight}else{if((A>=(this.getX1()-B))&&(A<=(this.getX1()+B))&&(F>=(this.getY2()-B))&&(F<=(this.getY2()+B))){return corners.lowerLeft}else{if((A>=(this.getX2()-B))&&(A<=(this.getX2()+B))&&(F>=(this.getY2()-B))&&(F<=(this.getY2()+B))){return corners.lowerRight}else{return null}}}}};BoundingBox.prototype.rotate=function(C,A,B){this.one.rotate(C,A,B);this.two.rotate(C,A,B)};BoundingBox.prototype.unrotate=function(C,A,B){this.one.unrotate(C,A,B);this.two.unrotate(C,A,B)};
