|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.awt.geom.Point2D
com.bbn.openmap.proj.coords.LatLonPoint
com.bbn.openmap.proj.coords.LatLonPoint.Float
public static class LatLonPoint.Float
The Float version of a LatLonPoint, where coordinates are held to float precision.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class com.bbn.openmap.proj.coords.LatLonPoint |
|---|
LatLonPoint.Double, LatLonPoint.Float |
| Field Summary | |
|---|---|
protected float |
lat
|
protected float |
lon
|
protected float |
radLat
|
protected float |
radLon
|
| Fields inherited from class com.bbn.openmap.proj.coords.LatLonPoint |
|---|
DATELINE, LON_RANGE, NORTH_POLE, SOUTH_POLE |
| Constructor Summary | |
|---|---|
LatLonPoint.Float()
Default constructor, values set to 0, 0. |
|
LatLonPoint.Float(float lat,
float lon)
|
|
LatLonPoint.Float(float lat,
float lon,
boolean isRadian)
|
|
LatLonPoint.Float(LatLonPoint llp)
Create Float version from another LatLonPoint. |
|
LatLonPoint.Float(java.awt.geom.Point2D pt2D)
Create Float version from Point2D object, where the x, y values are expected to be decimal degrees. |
|
| Method Summary | |
|---|---|
float |
getLatitude()
|
float |
getLongitude()
|
LatLonPoint |
getPoint(float dist,
float az)
Find a LatLonPoint a distance and direction away from this point, based on the spherical earth model. |
double |
getRadLat()
|
double |
getRadLon()
|
double |
getX()
Point2D method. |
double |
getY()
Point2D method |
void |
read(java.io.DataInputStream s)
Read object. |
void |
read(java.io.DataInputStream s,
boolean inRadians)
Read object. |
void |
setLatitude(double lat)
Set latitude. |
void |
setLatitude(float lat)
Set latitude. |
void |
setLatLon(double lat,
double lon)
Set lat/lon values. |
void |
setLatLon(double lat,
double lon,
boolean isRadians)
Set lat/lon values. |
void |
setLatLon(float lat,
float lon)
Set lat/lon values. |
void |
setLatLon(float lat,
float lon,
boolean isRadians)
Set lat/lon values. |
void |
setLocation(double x,
double y)
Point2D method, inheriting signature!! |
void |
setLocation(float x,
float y)
Point2D method, inheriting signature!! |
void |
setLongitude(double lon)
Set longitude. |
void |
setLongitude(float lon)
Set longitude. |
java.lang.String |
toString()
|
void |
write(java.io.DataOutputStream s)
Write object. |
| Methods inherited from class com.bbn.openmap.proj.coords.LatLonPoint |
|---|
azimuth, distance, equals, getDouble, getFloat, getPoint, isInvalidLatitude, isInvalidLongitude, normalizeLatitude, normalizeLatitude, setLatLon, wrapLongitude, wrapLongitude |
| Methods inherited from class java.awt.geom.Point2D |
|---|
clone, distance, distance, distance, distanceSq, distanceSq, distanceSq, hashCode, setLocation |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected float lat
protected float lon
protected transient float radLat
protected transient float radLon
| Constructor Detail |
|---|
public LatLonPoint.Float()
public LatLonPoint.Float(float lat,
float lon)
lat - decimal degree latitude.lon - decimal degree longitude.
public LatLonPoint.Float(float lat,
float lon,
boolean isRadian)
lat - latitudelon - longitudeisRadian - true if values are radians, false if decimal degrees.public LatLonPoint.Float(LatLonPoint llp)
llp - public LatLonPoint.Float(java.awt.geom.Point2D pt2D)
pt2D - | Method Detail |
|---|
public void setLocation(float x,
float y)
x - longitude value in decimal degrees.y - latitude value in decimal degrees.
public void setLocation(double x,
double y)
setLocation in class java.awt.geom.Point2Dx - longitude value in decimal degrees.y - latitude value in decimal degrees.
public void setLatLon(float lat,
float lon)
lat - decimal degree latitude.lon - decimal degree longitude.
public void setLatLon(double lat,
double lon)
setLatLon in class LatLonPointlat - decimal degree latitude.lon - decimal degree longitude.
public void setLatLon(double lat,
double lon,
boolean isRadians)
setLatLon in class LatLonPointlat - latitude.lon - longitude.isRadians - true if values are radians.
public void setLatLon(float lat,
float lon,
boolean isRadians)
lat - latitude.lon - longitude.isRadians - true if values are radians.public double getX()
getX in class java.awt.geom.Point2DPoint2D.getX()public double getY()
getY in class java.awt.geom.Point2Dpublic float getLongitude()
getLongitude in class LatLonPointpublic float getLatitude()
getLatitude in class LatLonPointpublic double getRadLon()
getRadLon in class LatLonPointpublic double getRadLat()
getRadLat in class LatLonPointpublic void setLatitude(float lat)
lat - latitude in decimal degreespublic void setLatitude(double lat)
setLatitude in class LatLonPointlat - latitude in decimal degreespublic void setLongitude(float lon)
lon - longitude in decimal degreespublic void setLongitude(double lon)
setLongitude in class LatLonPointlon - longitude in decimal degrees
public LatLonPoint getPoint(float dist,
float az)
dist - distance, in radians.az - radians of azimuth (direction) east of north (-PI <= Az
< PI)
public void write(java.io.DataOutputStream s)
throws java.io.IOException
s - DataOutputStream
java.io.IOException
public void read(java.io.DataInputStream s)
throws java.io.IOException
s - DataInputStream
java.io.IOException
public void read(java.io.DataInputStream s,
boolean inRadians)
throws java.io.IOException
s - DataInputStreaminRadians - if true, the floats read off stream will be
considered to be radians. Otherwise, they will be considered
to be decimal degrees.
java.io.IOExceptionpublic java.lang.String toString()
toString in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||