+
+ /** @return waypoint altitude */
+ inline double get_target_alt() const { return target_alt; }
+
+ /**
+ * This value is not calculated by this class. It is simply a
+ * placeholder for the user to stash a distance value. This is useful
+ * when you stack waypoints together into a route. You can calculate the
+ * distance from the previous waypoint once and save it here. Adding up
+ * all the distances here plus the distance to the first waypoint gives you
+ * the total route length. Note, you must update this value yourself, this
+ * is for your convenience only.
+ * @return waypoint distance holder (what ever the user has stashed here)
+ */
+ inline double get_distance() const { return distance; }
+
+ /**
+ * Set the waypoint distance value to a value of our choice.
+ * @param d distance
+ */
+ inline void set_distance( double d ) { distance = d; }
+
+ /** @return waypoint id */