Normalizing latitude and longitude in C++
Posting here for convenient lookup later. There are numerous ways these angles can be “normalized”, but typically we want a latitude between -90 and 90 and a longitude between -180 and 180 (e.g., instead of allowing a longitude of 270, etc.). I’m including boilerplate conversions between radians and degrees here as well.
Normalizing latitude and longitude in C++ Read More »
Geodetic to geocentric in C++
This is just something that I threw together quickly to get around an issue I had recently. There are other libraries that do this of course, but I still found it interesting. Just saving as notes in case I want to refer back to this later.
Geodetic to geocentric in C++ Read More »