yakra / tmtools

Tools to aid in development of the TravelMapping project
0 stars 0 forks source link

gisplunge: move measure into waypoint class #47

Closed yakra closed 6 years ago

yakra commented 6 years ago

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 and waypoint.cpp #49

yakra commented 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.