package primitives.geomtry;
import java.awt.Point;
	/**
	*The ExtPoint adds the capability to cast a Point object to a Coordinate object
	*@author Dori Eldar
	*/

public class ExtPoint extends Point{
	/**
     * Constructs and initializes an ExtPoint at the specified 
     * (<i>x</i>,&nbsp;<i>y</i>) location in integer values in the coordinate space. 
     * @param       x   the <i>x</i> coordinate.
     * @param       y   the <i>y</i> coordinate.
     */

	public ExtPoint(int x,int y){
		super(x,y);
	}
	/**
	*Returns a Coordinate object with the same location as this point.
	*@return a Coordinate representation of this point.
	*/
	public Coordinate toCoordinate(){
		return (new Coordinate(this));
	}
}
