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 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) + ")";
	}

}

@@ -165,32 +165,121 @@
 this.y = lon;%0A%09%7D
+%0A%09%0A%09public Location(Location  location)%7B%0A%09%09this.x = location.x;%0A%09%09this.y = location.y;%0A%09%7D
 %0A%0A%09public float 

add copy constructor for locations