package de.fhpotsdam.unfolding.geo;

import processing.core.*;

public class Location extends PVector {

	public Location(float lat, float lon) {
		this.x = lat;
		this.y = lon;
	}
	
	public Location(Location  location){
		this.x = location.x;
		this.y = location.y;
	}

	public float getLat() {
		return x;
	}

	public void setLat(float lat) {
		this.x = lat;
	}

	public float getLon() {
		return y;
	}

	public void setLon(float lon) {
		this.y = lon;
	}

	public String toString() {
		return "(" + PApplet.nf(x, 1, 3) + ", " + PApplet.nf(y, 1, 3) + ")";
	}

}

@@ -61,48 +61,248 @@
 *;%0A%0A
-public class Location extends PVector %7B%0A
+/**%0A * The Location represents a geo location defined by latitude and longitude.%0A */%0Apublic class Location extends PVector %7B%0A%0A%09/**%0A%09 * Create a Location.%0A%09 * @param lat latitude of the location.%0A%09 * @param lon longitude of the location%0A%09 */
 %0A%09pu
@@ -376,16 +376,85 @@
 n;%0A%09%7D%0A%09%0A
+%09/**%0A%09 * Create a Location%0A%09 * @param location location to use.%0A%09 */%0A
 %09public 

Document Location.