mirror of
https://codeberg.org/comaps/comaps
synced 2025-12-23 06:33:42 +00:00
Organic Maps sources as of 02.04.2025 (fad26bbf22ac3da75e01e62aa01e5c8e11861005)
To expand with full Organic Maps and Maps.ME commits history run: git remote add om-historic [om-historic.git repo url] git fetch --tags om-historic git replace squashed-history historic-commits
This commit is contained in:
23
geometry/region2d/binary_operators.hpp
Normal file
23
geometry/region2d/binary_operators.hpp
Normal file
@@ -0,0 +1,23 @@
|
||||
#pragma once
|
||||
|
||||
#include "geometry/region2d.hpp"
|
||||
|
||||
#include <vector>
|
||||
|
||||
namespace m2
|
||||
{
|
||||
using MultiRegionI = std::vector<RegionI>;
|
||||
|
||||
/// @name Next functions work in _append_ mode to the result.
|
||||
/// @{
|
||||
void IntersectRegions(RegionI const & r1, RegionI const & r2, MultiRegionI & res);
|
||||
void DiffRegions(RegionI const & r1, RegionI const & r2, MultiRegionI & res);
|
||||
/// @}
|
||||
|
||||
MultiRegionI IntersectRegions(RegionI const & r1, MultiRegionI const & r2);
|
||||
|
||||
/// Union \a r with \a res and save to \a res.
|
||||
void AddRegion(RegionI const & r, MultiRegionI & res);
|
||||
|
||||
uint64_t Area(MultiRegionI const & rgn);
|
||||
} // namespace m2
|
||||
Reference in New Issue
Block a user