From 7311dae4838a2745a581bb1c347e95782ff02606 Mon Sep 17 00:00:00 2001 From: jmt Date: Sun, 21 Feb 2010 22:05:41 +0000 Subject: [PATCH] Allow a waypoint's target altitude to be modified in-place. --- simgear/route/waypoint.hxx | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/simgear/route/waypoint.hxx b/simgear/route/waypoint.hxx index 29edf739..275d648e 100644 --- a/simgear/route/waypoint.hxx +++ b/simgear/route/waypoint.hxx @@ -130,6 +130,12 @@ public: inline const SGGeod& get_target() const { return pos; } + /** + * + */ + inline void setTargetAltFt(double elev) + { pos.setElevationFt(elev); } + /** * This value is not calculated by this class. It is simply a * placeholder for the user to stash a distance value. This is useful -- 2.39.2