netatmo-algo/src/bounding_box.h

17 lines
256 B
C
Raw Normal View History

2022-02-12 00:28:54 +01:00
#pragma once
#include <cstdint>
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
};