X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FAirports%2Fgnnode.cxx;h=c9883d812edda287d5fa6dd8b27f7b2fbe20f943;hb=386aefe69358ce41a11c9afeb8f56e26758fe56b;hp=b3b34d96001444e52cc03616530c26f1b5aed7e5;hpb=b452234cb203c3336cfc5299be8ff4789a0eb416;p=flightgear.git diff --git a/src/Airports/gnnode.cxx b/src/Airports/gnnode.cxx index b3b34d960..c9883d812 100644 --- a/src/Airports/gnnode.cxx +++ b/src/Airports/gnnode.cxx @@ -2,7 +2,7 @@ #include "groundnetwork.hxx" #include -SG_USING_STD(sort); +using std::sort; /***************************************************************************** * Helper function for parsing position string @@ -42,10 +42,28 @@ bool sortByLength(FGTaxiSegment *a, FGTaxiSegment *b) { /************************************************************************** * FGTaxiNode *************************************************************************/ -FGTaxiNode::FGTaxiNode() + + +void FGTaxiNode::setLatitude (double val) +{ + geod.setLatitudeDeg(val); +} + +void FGTaxiNode::setLongitude(double val) { + geod.setLongitudeDeg(val); } +void FGTaxiNode::setLatitude (const string& val) +{ + geod.setLatitudeDeg(processPosition(val)); +} + +void FGTaxiNode::setLongitude(const string& val) +{ + geod.setLongitudeDeg(processPosition(val)); +} + void FGTaxiNode::sortEndSegments(bool byLength) { if (byLength)