Rev 1563 |
Blame |
Compare with Previous |
Last modification |
View Log
| RSS feed
package dongfang.mkt.datatype;
public class GPSBearingAndRange
{
double distance
; // in m.
double bearing
; // in degrees.
public double getDistance
() {
return distance
;
}
public double getBearing
() {
return bearing
;
}
public void setDistance
(double distance
) {
this.
distance = distance
;
}
public void setBearing
(double bearing
) {
this.
bearing = bearing
;
}
public String toXML
() {
String result =
"distance=\"" +
this.
distance;
result +=
"\" bearing=\"";
result +=
this.
bearing;
result +=
"\"";
return result
;
}
public String toString
() {
String result =
this.
distance +
"m @";
result +=
this.
bearing;
result +=
"deg";
return result
;
}
}