Skip to content

Struct Argos::BoundingBox

ClassList > Argos > BoundingBox

Axis-aligned bounding box described by its two opposite corners.

  • #include <bench_bounding_box.h>

Public Attributes

Type Name
Vector3D< double > max
Vector3D< double > min

Public Functions

Type Name
Vector3D< double > center () const
Geometric center of the box.
double diagonal () const
Length of the main diagonal of the box.
Vector3D< double > size () const
Per-axis extent of the box.
double volume () const
Geometric volume of the box.

Public Attributes Documentation

variable max

Vector3D<double> Argos::BoundingBox::max;

Maximum corner (largest coordinates along each axis).


variable min

Vector3D<double> Argos::BoundingBox::min;

Minimum corner (smallest coordinates along each axis).


Public Functions Documentation

function center

Geometric center of the box.

Vector3D< double > Argos::BoundingBox::center () const

Compute the center of the bounding box.

Returns:

The midpoint of min and max.

Returns:

Vector containing the coordinates of the box center.


function diagonal

Length of the main diagonal of the box.

double Argos::BoundingBox::diagonal () const

Compute the main diagonal of the bounding box.

Returns:

Euclidean distance from min to max.

Returns:

The length of the main diagonal of the box.


function size

Per-axis extent of the box.

Vector3D< double > Argos::BoundingBox::size () const

Compute the per-axis size of the bounding box.

Returns:

Vector equal to max - min.

Returns:

Vector containing the width, height and depth of the box.


function volume

Geometric volume of the box.

double Argos::BoundingBox::volume () const

Compute the volume of the bounding box.

Returns:

Product of the three side lengths.

Returns:

The volume of the box.



The documentation for this class was generated from the following file benchmark/metrics/implementations/bench_bounding_box.h