// vim:syntax=javascript

class Rectangle
{
    var x:Number;
    var y:Number;
    var width:Number;
    var height:Number;

    function Rectangle(px:Number,py:Number,pwidth:Number,pheight:Number) {
        this.x = px;
        this.y = py;
        this.width = pwidth;
        this.height = pheight;
    }

    function toString() : String {
        return "("+x+","+y+") ("+width+","+height+")";
    }
}
