mirror of
https://codeberg.org/comaps/comaps
synced 2025-12-19 13:03:36 +00:00
Format all C++ and Java code via clang-format
Signed-off-by: Konstantin Pastbin <konstantin.pastbin@gmail.com>
This commit is contained in:
@@ -14,10 +14,10 @@ void ForEachFeatureAtPoint(DataSource const & dataSource, function<void(FeatureT
|
||||
double constexpr kSelectRectWidthInMeters = 1.1;
|
||||
double constexpr kMetersToLinearFeature = 3;
|
||||
int constexpr kScale = scales::GetUpperScale();
|
||||
m2::RectD const rect =
|
||||
mercator::RectByCenterXYAndSizeInMeters(mercator, kSelectRectWidthInMeters);
|
||||
m2::RectD const rect = mercator::RectByCenterXYAndSizeInMeters(mercator, kSelectRectWidthInMeters);
|
||||
|
||||
auto const emitter = [&fn, &rect, &mercator, toleranceInMeters](FeatureType & ft) {
|
||||
auto const emitter = [&fn, &rect, &mercator, toleranceInMeters](FeatureType & ft)
|
||||
{
|
||||
switch (ft.GetGeomType())
|
||||
{
|
||||
case feature::GeomType::Point:
|
||||
@@ -34,11 +34,8 @@ void ForEachFeatureAtPoint(DataSource const & dataSource, function<void(FeatureT
|
||||
// Be a little more tolerant. When used by editor mercator is given
|
||||
// with some error, so we must extend limit rect a bit.
|
||||
limitRect.Inflate(kMwmPointAccuracy, kMwmPointAccuracy);
|
||||
if (limitRect.IsPointInside(mercator) &&
|
||||
feature::GetMinDistanceMeters(ft, mercator) <= toleranceInMeters)
|
||||
{
|
||||
if (limitRect.IsPointInside(mercator) && feature::GetMinDistanceMeters(ft, mercator) <= toleranceInMeters)
|
||||
fn(ft);
|
||||
}
|
||||
}
|
||||
break;
|
||||
case feature::GeomType::Undefined: ASSERT(false, ("case feature::GeomType::Undefined")); break;
|
||||
|
||||
Reference in New Issue
Block a user