function Area( left, top, right, bottom )
{
	this.getLeft = function( )
	{
		return this.position.getX( );
	};
	
	this.getRight = function( )
	{
		return this.position.getX( ) + this.size.getWidth( );
	};
	
	this.getTop = function( )
	{
		return this.position.getY( );
	};
	
	this.getBottom = function( )
	{
		return this.position.getY( ) + this.size.getHeight( );
	};
	
	this.getWidth = function( )
	{
		return this.size.getWidth( );
	};
	
	this.getHeight = function( )
	{
		return this.size.getHeight( );
	};
	
	this.contains = function( area )
	{
		return this.getLeft( ) <= area.getLeft( )
			&& area.getRight( ) <= this.getRight( )
			&& this.getTop( ) <= area.getTop( )
			&& area.getBottom( ) <= this.getBottom( );
	};
	
	this.toString = function( )
	{
		return "( " + left + ", " + top + " ) -> ( " + right + ", " + bottom + " )";
	};

	this.position = new Position( left, top );
	this.size = new Size( right - left, bottom - top );
}

