Axis-aligned bounding rectangle in 2D space
Synopsis:
#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;
Data:
- union
- A union with one of the following members:
- struct
- A struct that stores the position of a
rectangle. The structure has the following members:
- double x
- Horizontal position.
- double y
- Vertical position.
- double padding
- For internal use only; do not use.
- adas_position_t position
- 2D position of the rectangle (see adas_position_t).
- union
- A union with one of the following members:
- struct
- A struct that stores the dimensions of a rectangle.
The structure has the following members:
- double width
- Width of the rectangle.
- double height
- Height of the rectangle.
- adas_dimensions_t dimension
- 2D dimensions of the rectangle (see adas_dimensions_t).
Library:
libadas
Description:
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.