make short variable names more legible

This commit is contained in:
Dennis Luxen 2014-05-26 12:49:24 +02:00
parent f4f49b2b46
commit 5db23f7e46

View File

@ -254,11 +254,11 @@ float FixedPointCoordinate::ComputePerpendicularDistance(const FixedPointCoordin
ratio = (p - nY * a) / c; // These values are actually n/m+n and m/m+n , we need
// not calculate the explicit values of m an n as we
// are just interested in the ratio
if (std::isnan(r))
if (std::isnan(ratio))
{
ratio = ((coord_b.lat == query_location.lat) && (coord_b.lon == query_location.lon)) ? 1. : 0.;
}
else if (std::abs(r) <= std::numeric_limits<float>::epsilon())
else if (std::abs(ratio) <= std::numeric_limits<float>::epsilon())
{
ratio = 0.;
}