/*
 * Created on Jul 20, 2004
 *
 * TODO To change the template for this generated file go to
 * Window - Preferences - Java - Code Style - Code Templates
 */
package org.avmdti.josast.util.mathematique;

/**
 * 
 * 
 * @author Xtophe
 * @version 1.0
 * 
 * 
 */
public class CoordGeo {

	/**
	 * @param lat latitude in radian
	 * @param lon longitude in radian
	 * @param alt altitude in kilometers
	 */
	public CoordGeo(double lat, double lon, double alt) {
		latitude = lat;
		longitude =lon;
		altitude = alt;
		
	}
	
	public CoordGeo() {
		latitude = 0.0;
		longitude = 0.0;
		altitude = 0.0;

	}
	
	private  double latitude;
	private double longitude;
	private double altitude;
	
	
/**
 * the format is  "Lat = xx Lon = yy Alt = zz.zz
 * lat and lon in degree
 * 
 * @see java.lang.Object#toString()
 */
public String toString()
{
	return ("Lat = "+ Math.toDegrees(latitude)+" Lon = "+Math.toDegrees(longitude) + " Alt = "+altitude);
}

/**
 * @return latitude
 */
public double getLatitude() {
	return latitude;
}

/**
 * @param latitude
 */
public void setLatitude(double latitude) {
	this.latitude = latitude;
}

/**
 * @return longitude
 */
public double getLongitude() {
	return longitude;
}

/**
 * @param longitude
 */
public void setLongitude(double longitude) {
	this.longitude = longitude;
}

/**
 * @return altitude
 */
public double getAltitude() {
	return altitude;
}

/**
 * @param altitude
 */
public void setAltitude(double altitude) {
	this.altitude = altitude;
}
}
