Closed yakra closed 6 years ago
On second thought, maybe not?
The function is written as it is in order to be somewhat human-readable.
Thus in order to not mangle the Latitude & Longitude in the object, I would have to redeclare a new double, E.G. double lat1 = Lat * (3.1415926535898/180); // deg -> rad
. No big deal but a bit ugly-looking.
But that alone is enough to put me off. I like the idea of keeping measure free of any specific object, to have the versatility of measuring any two arbitrary Lat,Lon pairs, should I ever need to.
Move measure into waypoint class. That's better housekeeping than leaving it at global scope, n'est-ce pas? This can wait till after splitting waypoint.cpp into
waypoint.h
andwaypoint.cpp
#49