// (C)2007 Attila Kovacs <attila@submm.caltech.edu>


public class RadioProjection extends SphericalProjection {	
	public RadioProjection() {}

	@Override
	public String getFitsID() { return fitsID; }

	@Override
	public String getFullName() { return fullName; }

	
	public final void project(SphericalCoordinates coords, CoordinatePair toProjected) {
		toProjected.x = (coords.x - reference.x) * coords.cosLat;
		toProjected.y = coords.y - reference.y;
	}
	
	public final void deproject(CoordinatePair projected, SphericalCoordinates toCoords) {
		toCoords.setLatitude(reference.y + projected.y);
		toCoords.setLongitude(reference.x + projected.x / toCoords.cosLat);
	}
	
	
	// These are not used thanks to the overriding of the projection equations...
	@Override
	public void getOffsets(double theta, double phi, CoordinatePair toOffset) {
		// TODO Auto-generated method stub
		return;
	}

	@Override
	public double phi(CoordinatePair offset) {
		// TODO Auto-generated method stub
		return 0;
	}

	@Override
	public double theta(CoordinatePair offset) {
		// TODO Auto-generated method stub
		return 0;
	}

	
	public final static String fitsID = "GLS";
	public final static String fullName = "Radio";

}
