/*****************************************************************************
 *
 * File     : Point.js
 * 
 * Project  : WMS Viewer Client
 * 
 * Contents : 
 *
 * Author: Milan Trninic
 *
 * Copyright 1999-2005 Galdos Systems, Inc.
 * All rights reserved.
 * 
 ***|***************************|***********************|*******************|*/

/************************************************************************
*
*	Global declarations
*
*	
*
*************************************************************************/

/************************************************************************
*
*	function:	Point
*
*	purpose:	Constructor
*
*************************************************************************/
function Point(x, y)
{
	// method assignments
	this.init = Point.init;
	this.getX = Point.getX;
	this.getY = Point.getY;
	this.setX = Point.setX;
	this.setY = Point.setY;
  
	// instance field declarations
	this._x;
	this._y;
	
	// initialization
	this.init(x, y);
}

/************************************************************************
*
*	function:	init
*
*	purpose:	initialization
*
*************************************************************************/
function Point.init(x, y)
{
	this._x = parseFloat(x);
	this._y = parseFloat(y);
}

/************************************************************************
*
*	function:	getX
*
*	purpose:	
*
*************************************************************************/
function Point.getX()
{
	return this._x;
}

/************************************************************************
*
*	function:	getY
*
*	purpose:	
*
*************************************************************************/
function Point.getY()
{
	return this._y;
}

/************************************************************************
*
*	function:	setX
*
*	purpose:	
*
*************************************************************************/
function Point.setX(x)
{
	this._x = x;
}

/************************************************************************
*
*	function:	setY
*
*	purpose:	
*
*************************************************************************/
function Point.setY(y)
{
	this._y = y;
}

