netatmo-algo/src/bounding_box.h

21 lines
302 B
C
Raw Normal View History

2022-02-12 00:28:54 +01:00
#pragma once
#include <cstdint>
2022-02-15 13:17:14 +01:00
namespace freling {
2022-02-12 00:28:54 +01:00
struct BoundingBox {
uint32_t left;
uint32_t top;
uint32_t right;
uint32_t bottom;
2022-02-14 00:13:09 +01:00
int width() const;
int height() const;
int area() const;
bool operator==(const BoundingBox& b) const;
2022-02-12 00:28:54 +01:00
};
2022-02-15 13:17:14 +01:00
} // namespace freling