Big Restructuring / Cleanup
This commit is contained in:
@@ -260,10 +260,11 @@ double computeAngle(const Coordinate first, const Coordinate second, const Coord
|
||||
Coordinate interpolateLinear(double factor, const Coordinate from, const Coordinate to)
|
||||
{
|
||||
BOOST_ASSERT(0 <= factor && factor <= 1.0);
|
||||
return {from.lon + toFixed(FloatLongitude(
|
||||
factor * static_cast<double>(toFloating(to.lon - from.lon)))),
|
||||
from.lat + toFixed(FloatLatitude(
|
||||
factor * static_cast<double>(toFloating(to.lat - from.lat))))};
|
||||
return {
|
||||
from.lon +
|
||||
toFixed(FloatLongitude(factor * static_cast<double>(toFloating(to.lon - from.lon)))),
|
||||
from.lat +
|
||||
toFixed(FloatLatitude(factor * static_cast<double>(toFloating(to.lat - from.lat))))};
|
||||
}
|
||||
|
||||
namespace mercator
|
||||
|
||||
Reference in New Issue
Block a user