From 5db23f7e4633064cb8a123a4951d47325c7d7b35 Mon Sep 17 00:00:00 2001 From: Dennis Luxen Date: Mon, 26 May 2014 12:49:24 +0200 Subject: [PATCH] make short variable names more legible --- DataStructures/Coordinate.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/DataStructures/Coordinate.cpp b/DataStructures/Coordinate.cpp index 2bbeb3b55..474001a5b 100644 --- a/DataStructures/Coordinate.cpp +++ b/DataStructures/Coordinate.cpp @@ -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::epsilon()) + else if (std::abs(ratio) <= std::numeric_limits::epsilon()) { ratio = 0.; }