Repo created
This commit is contained in:
parent
4af19165ec
commit
68073add76
12458 changed files with 12350765 additions and 2 deletions
18
libs/indexer/indexer_tests/bounds.hpp
Normal file
18
libs/indexer/indexer_tests/bounds.hpp
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
#pragma once
|
||||
|
||||
#include "geometry/rect2d.hpp"
|
||||
|
||||
template <int MinX, int MinY, int MaxX, int MaxY>
|
||||
struct Bounds
|
||||
{
|
||||
static double constexpr kMinX = MinX;
|
||||
static double constexpr kMaxX = MaxX;
|
||||
static double constexpr kMinY = MinY;
|
||||
static double constexpr kMaxY = MaxY;
|
||||
static double constexpr kRangeX = kMaxX - kMinX;
|
||||
static double constexpr kRangeY = kMaxY - kMinY;
|
||||
|
||||
static m2::RectD FullRect() { return {MinX, MinY, MaxX, MaxY}; }
|
||||
};
|
||||
|
||||
using OrthoBounds = Bounds<-180, -90, 180, 90>;
|
||||
Loading…
Add table
Add a link
Reference in a new issue