AxisAlignedBoxHelpers< Precision > Class Template Reference

A utility class to assist in converting different geometric shapes into AxisAlignedBox representations. More...

#include <AxisAlignedBoxHelpers.hh>

Static Public Member Functions

static AxisAlignedBox ConvertToAxisAlignedBox (const Box< Precision > &_box)
 Convert a Box to an AxisAlignedBox.
 
static AxisAlignedBox ConvertToAxisAlignedBox (const Capsule< Precision > &_capsule)
 Convert a Capsule to an AxisAlignedBox.
 
static AxisAlignedBox ConvertToAxisAlignedBox (const Cylinder< Precision > &_cylinder)
 Convert a Cylinder to an AxisAlignedBox.
 
static AxisAlignedBox ConvertToAxisAlignedBox (const Sphere< Precision > &_sphere)
 Convert a Sphere to an AxisAlignedBox.
 

Detailed Description

template<typename Precision>
class gz::math::AxisAlignedBoxHelpers< Precision >

A utility class to assist in converting different geometric shapes into AxisAlignedBox representations.

AxisAlignedBoxHelpers.hh gz/math/AxisAlignedBoxHelpers.hh

This class provides static methods for converting different types of 3D shapes, such as Box, Sphere, Capsule, and Cylinder, into AxisAlignedBox objects.

Member Function Documentation

🔗ConvertToAxisAlignedBox() [1/4]

template<typename Precision >
static AxisAlignedBox ConvertToAxisAlignedBox ( const Box< Precision > &  _box)
static

Convert a Box to an AxisAlignedBox.

Parameters
[in]_boxThe Box to be converted.
Returns
An AxisAlignedBox that fully contains the given Box.

🔗ConvertToAxisAlignedBox() [2/4]

template<typename Precision >
static AxisAlignedBox ConvertToAxisAlignedBox ( const Capsule< Precision > &  _capsule)
static

Convert a Capsule to an AxisAlignedBox.

Parameters
[in]_capsuleThe Capsule to be converted.
Returns
An AxisAlignedBox that fully contains the given Capsule.

🔗ConvertToAxisAlignedBox() [3/4]

template<typename Precision >
static AxisAlignedBox ConvertToAxisAlignedBox ( const Cylinder< Precision > &  _cylinder)
static

Convert a Cylinder to an AxisAlignedBox.

Parameters
[in]_cylinderThe Cylinder to be converted.
Returns
An AxisAlignedBox that fully contains the given Cylinder.

🔗ConvertToAxisAlignedBox() [4/4]

template<typename Precision >
static AxisAlignedBox ConvertToAxisAlignedBox ( const Sphere< Precision > &  _sphere)
static

Convert a Sphere to an AxisAlignedBox.

Parameters
[in]_sphereThe Sphere to be converted.
Returns
An AxisAlignedBox that fully contains the given Sphere.

The documentation for this class was generated from the following file: