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:
@@ -3,9 +3,9 @@
|
||||
#include "geometry/distance_on_sphere.hpp"
|
||||
#include "geometry/mercator.hpp"
|
||||
|
||||
#include "std/boost_geometry.hpp"
|
||||
#include <boost/geometry/geometries/point_xy.hpp>
|
||||
#include <boost/geometry/geometries/polygon.hpp>
|
||||
#include "std/boost_geometry.hpp"
|
||||
|
||||
namespace generator
|
||||
{
|
||||
@@ -16,7 +16,8 @@ double AreaOnEarth(std::vector<m2::PointD> const & points)
|
||||
using LonLatCoords = bg::cs::spherical_equatorial<bg::degree>;
|
||||
bg::model::ring<bg::model::point<double, 2, LonLatCoords>> sphericalPolygon;
|
||||
|
||||
auto const addPoint = [&sphericalPolygon](auto const & point) {
|
||||
auto const addPoint = [&sphericalPolygon](auto const & point)
|
||||
{
|
||||
auto const latlon = mercator::ToLatLon(point);
|
||||
sphericalPolygon.emplace_back(latlon.m_lon, latlon.m_lat);
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user