adas_cube_t

Axis Aligned Bounding Cube in 3D space

Synopsis:

#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;

Data:

struct
A struct that contains the X, Y, Z positions of a cube. The struct contains these members:
double x
Position on the X axis.
double y
Position on the Y axis.
double z
Position on the Z axis.
adas_position_3d_t position
3D position of the cube.
struct
A struct that contains the 3D dimensions of a cube.
double width
Width of the cube.
double height
Height of the cube.
double depth
Depth of the cube.
adas_dimensions_3d_t dimensions
3D dimensions of the cube.
adas_rect_t top_rect
2D rectangle of the top of the cube.
struct
A struct that contains the 2D dimensions of the front of the cube.
adas_rect_t front_rect
2D rectangle of the front of the cube.

Library:

libadas

Description:

This value can be a normalized values, in millimeters or pixels from the source coordinate space depending on usage.