| 160 | } |
| 161 | |
| 162 | bool IsValid() const |
| 163 | { |
| 164 | return min_lon != FixedLongitude{std::numeric_limits<std::int32_t>::max()} && |
| 165 | max_lon != FixedLongitude{std::numeric_limits<std::int32_t>::min()} && |
| 166 | min_lat != FixedLatitude{std::numeric_limits<std::int32_t>::max()} && |
| 167 | max_lat != FixedLatitude{std::numeric_limits<std::int32_t>::min()}; |
| 168 | } |
| 169 | |
| 170 | static RectangleInt2D ExpandMeters(const Coordinate &coordinate, const double meters) |
| 171 | { |