org.boehn.kmlframework.coordinates
Class EarthCoordinate
java.lang.Object
org.boehn.kmlframework.kml.KmlObject
org.boehn.kmlframework.kml.Geometry
org.boehn.kmlframework.kml.Point
org.boehn.kmlframework.coordinates.EarthCoordinate
- All Implemented Interfaces:
- Coordinate
public class EarthCoordinate
- extends Point
- implements Coordinate
Methods inherited from class org.boehn.kmlframework.kml.Point |
getAltitude, getAltitudeMode, getExtrude, getLatitude, getLongitude, getLongitudeLatitudeAltitudeString, setAltitude, setAltitudeMode, setExtrude, setLatitude, setLongitude, write, writeDelete |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
EARTHRADIUS
public static double EARTHRADIUS
EarthCoordinate
public EarthCoordinate()
EarthCoordinate
public EarthCoordinate(java.lang.Double longitude,
java.lang.Double latitude)
EarthCoordinate
public EarthCoordinate(java.lang.Double longitude,
java.lang.Double latitude,
java.lang.Double altitude)
EarthCoordinate
public EarthCoordinate(java.lang.Boolean extrude,
AltitudeModeEnum altitudeMode,
java.lang.Double longitude,
java.lang.Double latitude,
java.lang.Double altitude)
getRadius
public double getRadius()
toCartesianCoordinate
public CartesianCoordinate toCartesianCoordinate()
distanceTo
public double distanceTo(EarthCoordinate earthCoordinate)
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
toEarthCoordinate
public EarthCoordinate toEarthCoordinate(EarthCoordinate earthCoordinate,
java.lang.Double rotation,
CartesianCoordinate localReferenceCoordinate,
CartesianCoordinate scale)
- Specified by:
toEarthCoordinate
in interface Coordinate