/*****************************************************************************
 *
 * File     : Rectangle.js
 * 
 * Project  : WMS Viewer Client
 * 
 * Contents : 
 *
 * Author: Milan Trninic
 *
 * Copyright 1999-2005 Galdos Systems, Inc.
 * All rights reserved.
 * 
 ***|***************************|***********************|*******************|*/

/************************************************************************
*
*	Global declarations
*
*	
*
*************************************************************************/

/************************************************************************
*
*	function:	Rectangle
*
*	purpose:	Constructor
*
*************************************************************************/
function Rectangle(width, height)
{
	// method assignments
	this.init = Rectangle.init;
	this.getWidth = Rectangle.getWidth;
	this.getHeight = Rectangle.getHeight;
  
	// instance field declarations
	this._width;
	this._height;
	
	// initialization
	this.init(width, height);
}

/************************************************************************
*
*	function:	init
*
*	purpose:	initialization
*
*************************************************************************/
function Rectangle.init(width, height)
{
	this._width = parseFloat(width);
	this._height = parseFloat(height);
}

/************************************************************************
*
*	function:	getWidth
*
*	purpose:	
*
*************************************************************************/
function Rectangle.getWidth()
{
	return this._width;
}

/************************************************************************
*
*	function:	getHeight
*
*	purpose:	
*
*************************************************************************/
function Rectangle.getHeight()
{
	return this._height;
}

