- // Calculate course and distances. For WGS84 and SPHERICAL
- // coordinates lat, lon, and course are in degrees, alt and
- // distance are in meters. For CARTESIAN coordinates x = lon, y =
- // lat. Course is in degrees and distance is in what ever units x
- // and y are in.
+ /**
+ * Calculate course and distances. For WGS84 and SPHERICAL
+ * coordinates lat, lon, and course are in degrees, alt and
+ * distance are in meters. For CARTESIAN coordinates x = lon, y =
+ * lat. Course is in degrees and distance is in what ever units x
+ * and y are in.
+ * @param cur_lon (in) current longitude
+ * @param cur_lat (in) current latitude
+ * @param cur_alt (in) current altitude
+ * @param course (out) heading from current location to this waypoint
+ * @param distance (out) distance from current location to this waypoint
+ */