| Updated: October 28, 2024 |
Axis-aligned bounding rectangle in 2D space
#include <adas/adas_defs.h>
typedef struct adas_rect_t {
union {
struct {
double x;
double y;
double padding;
};
adas_position_t position;
};
union {
struct {
double width;
double height;
};
adas_dimensions_t dimension;
};
} adas_rect_t;
The values that define the position and dimensions of the rectangle can be normalized values, in millimeters or pixels from the source coordinate space, depending on usage.