//Creative Department by DH v1.0
//dependencies: point
/*
	This object defines the basic attributes of a dimension.
*/
function Dimension () {
    this.x = 0;
    this.y = 0;
    this.width = 0;
    this.height = 0;
}
Dimension.prototype.getX = function () {
    return this.x;
};
Dimension.prototype.setX = function (newX) {
    this.x = newX;
};
Dimension.prototype.getY = function () {
    return this.y;
};
Dimension.prototype.setY = function (newY) {
    this.y = newY;
};
Dimension.prototype.getWidth = function () {
    return this.width;
};
Dimension.prototype.setWidth = function (newWidth) {
    this.width = newWidth;
};
Dimension.prototype.getHeight = function () {
    return this.height;
};
Dimension.prototype.setHeight = function (newHeight) {
    this.height = newHeight;
};
Dimension.prototype.setPoint = function (point) {
        this.x = point.getX();
        this.y = point.getY();
};
Dimension.prototype.getPoint = function () {
    var point = new Point();
    point.setX(this.x);
    point.setY(this.y);
    return point;
};