Home Previous Up Next Index

visionx::BoundingBox3D

Overview

struct BoundingBox3D

Axis-aligned bounding box in 3D. The dimensions are as follows: X Axis is the width delimited between x0,x1 inclusive. Y Axis is the height delimited between y0,y1 inclusive. Z Axis is the depth delimited between z0,z1 inclusive. A defined bounding box has fulfills (x1>x0) && (y1>y0) && (z1>z0), thus at leat one point is set. This means, a bounding box with not volume is still valid as long as it contains at leats on single point. An undefined bounding box fulfills (x0>x1) || (y0>y1) || (z0>z1). In this case, this is considered as empty. Each coordinate value is one float 32 bits. Total axis-aligned bounding box in 3D size: 24 bytes = 192 bits

Data Member Index

x0
y0
z0
x1
y1
z1

Data Members

float x0;
float y0;
float z0;
float x1;
float y1;
float z1;

Home Previous Up Next Index