|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object processing.core.PVector de.fhpotsdam.unfolding.geo.Location
public class Location
The Location represents a geo location defined by latitude and longitude.
Field Summary |
---|
Fields inherited from class processing.core.PVector |
---|
array, x, y, z |
Constructor Summary | |
---|---|
Location(double lat,
double lon)
|
|
Location(float lat,
float lon)
Create a Location. |
|
Location(Location location)
Create a Location |
Method Summary | |
---|---|
double |
getDistance(Location otherLocation)
|
float |
getLat()
|
float |
getLon()
|
void |
setLat(float lat)
|
void |
setLon(float lon)
|
java.lang.String |
toString()
|
Methods inherited from class processing.core.PVector |
---|
add, add, add, add, angleBetween, array, cross, cross, cross, dist, dist, div, div, div, dot, dot, dot, equals, fromAngle, fromAngle, get, get, hashCode, heading, heading2D, lerp, lerp, lerp, limit, mag, magSq, mult, mult, mult, normalize, normalize, random2D, random2D, random2D, random2D, random3D, random3D, random3D, random3D, rotate, set, set, set, set, setMag, setMag, sub, sub, sub, sub |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Location(float lat, float lon)
lat
- latitude of the location.lon
- longitude of the locationpublic Location(double lat, double lon)
public Location(Location location)
location
- location to use.Method Detail |
---|
public float getLat()
public void setLat(float lat)
public float getLon()
public void setLon(float lon)
public java.lang.String toString()
toString
in class processing.core.PVector
public double getDistance(Location otherLocation)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |