bearing method
Converts a degree value deg
to a String representation (deg/min/sec) of
the bearing.
Throws FormatException if a string representation cannot be formatted.
Implementation
String bearing(double deg) {
final buf = StringBuffer();
writeBearing(buf, deg);
return buf.toString();
}