diff --git a/src/Airports/GenAirports850/apt_math.cxx b/src/Airports/GenAirports850/apt_math.cxx index 2f9c2680..aca808c8 100644 --- a/src/Airports/GenAirports850/apt_math.cxx +++ b/src/Airports/GenAirports850/apt_math.cxx @@ -64,7 +64,7 @@ tgContour gen_wgs84_area( SGGeod origin, } tgContour gen_wgs84_area( SGGeod end1, SGGeod end2, - double length_m, + double length_ext, double displ1, double displ2, double width_m, double heading_deg, @@ -80,7 +80,7 @@ tgContour gen_wgs84_area( SGGeod end1, SGGeod end2, SGGeod center = SGGeodesy::direct(end1, course1, distance/2 ); // move from end2 to the displaced threshold - SGGeod ref = SGGeodesy::direct( end2, heading_deg, length_m / 2.0 - displ2); + SGGeod ref = SGGeodesy::direct( end2, heading_deg, length_ext / 2.0 - displ2); // move to the l,-w corner @@ -95,7 +95,7 @@ tgContour gen_wgs84_area( SGGeod end1, SGGeod end2, } // move to the end1 center to the displ. threshold - ref = SGGeodesy::direct( end1, heading_deg, displ1 - length_m / 2.0 ); + ref = SGGeodesy::direct( end1, heading_deg, displ1 - length_ext / 2.0 ); // move to the -l,w corner result.AddNode( SGGeodesy::direct( ref, left_hdg, width_m / 2.0 ) ); diff --git a/src/Airports/GenAirports850/apt_math.hxx b/src/Airports/GenAirports850/apt_math.hxx index 2091afe9..21a78562 100644 --- a/src/Airports/GenAirports850/apt_math.hxx +++ b/src/Airports/GenAirports850/apt_math.hxx @@ -21,7 +21,7 @@ tgContour gen_wgs84_area( SGGeod origin, bool add_mid ); tgContour gen_wgs84_area( SGGeod end1, SGGeod end2, - double length_m, + double length_ext, double displ1, double displ2, double width_m, double heading_deg,