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