mirror of
https://codeberg.org/comaps/comaps
synced 2025-12-19 21:13:35 +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,8 +14,7 @@ double constexpr PositionAccumulator::kMaxValidSegmentLengthM;
|
||||
|
||||
void PositionAccumulator::PushNextPoint(m2::PointD const & point)
|
||||
{
|
||||
double const lenM =
|
||||
m_points.empty() ? 0.0 : mercator::DistanceOnEarth(point, m_points.back());
|
||||
double const lenM = m_points.empty() ? 0.0 : mercator::DistanceOnEarth(point, m_points.back());
|
||||
|
||||
// If the last segment is too long it tells nothing about an end user direction.
|
||||
// And the history is not actual.
|
||||
@@ -77,4 +76,4 @@ m2::PointD PositionAccumulator::GetDirection() const
|
||||
|
||||
return m_points.back() - m_points.front();
|
||||
}
|
||||
} // routing
|
||||
} // namespace routing
|
||||
|
||||
Reference in New Issue
Block a user