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:
- A struct that sttores 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
- 2-D position of the rectangle.
- 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.
Library:
libadas
Description:
This value can be a normalized values, in millimeters or pixels from the source coordinate space depending on usage.