Skip to content

Commit

Permalink
Improve AxisAlignedBox methods documentation
Browse files Browse the repository at this point in the history
Signed-off-by: Gabriel Pacheco <[email protected]>
  • Loading branch information
gabrielfpacheco committed Mar 10, 2025
1 parent 546b34b commit 529d2e6
Show file tree
Hide file tree
Showing 7 changed files with 14 additions and 7 deletions.
3 changes: 2 additions & 1 deletion include/sdf/Box.hh
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,8 @@ namespace sdf
CalculateInertial(double _density);

/// \brief Get the Axis-aligned box for this Box.
/// \return A gz::math::AxisAlignedBox object.
/// \return A gz::math::AxisAlignedBox object centered at this
/// Box's center.
public: gz::math::AxisAlignedBox AxisAlignedBox() const;

/// \brief Create and return an SDF element filled with data from this
Expand Down
3 changes: 2 additions & 1 deletion include/sdf/Capsule.hh
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,8 @@ namespace sdf
double _density);

/// \brief Get the Axis-aligned box for this Capsule.
/// \return A gz::math::AxisAlignedBox object.
/// \return A gz::math::AxisAlignedBox object centered at this
/// Capsules's center.
public: gz::math::AxisAlignedBox AxisAlignedBox() const;

/// \brief Create and return an SDF element filled with data from this
Expand Down
3 changes: 2 additions & 1 deletion include/sdf/Cone.hh
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,8 @@ namespace sdf
CalculateInertial(double _density);

/// \brief Get the Axis-aligned box for this Cone.
/// \return A gz::math::AxisAlignedBox object.
/// \return A gz::math::AxisAlignedBox object centered at this
/// Cones's center.
public: gz::math::AxisAlignedBox AxisAlignedBox() const;

/// \brief Create and return an SDF element filled with data from this
Expand Down
3 changes: 2 additions & 1 deletion include/sdf/Cylinder.hh
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,8 @@ namespace sdf
CalculateInertial(double _density);

/// \brief Get the Axis-aligned box for this Cylinder.
/// \return A gz::math::AxisAlignedBox object.
/// \return A gz::math::AxisAlignedBox object centered at this
/// Cylinder's center.
public: gz::math::AxisAlignedBox AxisAlignedBox() const;

/// \brief Create and return an SDF element filled with data from this
Expand Down
3 changes: 2 additions & 1 deletion include/sdf/Ellipsoid.hh
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,8 @@ namespace sdf
CalculateInertial(double _density);

/// \brief Get the Axis-aligned box for this Ellipsoid.
/// \return A gz::math::AxisAlignedBox object.
/// \return A gz::math::AxisAlignedBox object centered at this
/// Ellipsoids's center.
public: gz::math::AxisAlignedBox AxisAlignedBox() const;

/// \brief Create and return an SDF element filled with data from this
Expand Down
3 changes: 2 additions & 1 deletion include/sdf/Mesh.hh
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,8 @@ namespace sdf
/// \brief Get the Axis-aligned box for this Mesh.
/// \param[in] _aabbCalc A custom function that calculates the
/// AxisAlignedBox for the Mesh.
/// \return A gz::math::AxisAlignedBox object.
/// \return A gz::math::AxisAlignedBox object centered at this
/// Mesh's origin.
public: std::optional<gz::math::AxisAlignedBox>
AxisAlignedBox(const AxisAlignedBoxCalculator &_aabbCalc) const;

Expand Down
3 changes: 2 additions & 1 deletion include/sdf/Sphere.hh
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,8 @@ namespace sdf
CalculateInertial(double _density);

/// \brief Get the Axis-aligned box for this Sphere.
/// \return A gz::math::AxisAlignedBox object.
/// \return A gz::math::AxisAlignedBox object centered at this
/// Sphere's center.
public: gz::math::AxisAlignedBox AxisAlignedBox() const;

/// \brief Create and return an SDF element filled with data from this
Expand Down

0 comments on commit 529d2e6

Please sign in to comment.