Skip to content
Snippets Groups Projects
Commit ff6b988f authored by Rainer Kartmann's avatar Rainer Kartmann
Browse files

Fix constness

parent ab8bc149
No related branches found
No related tags found
No related merge requests found
......@@ -17,7 +17,7 @@ namespace simox
*/
struct AxisAlignedBoundingBox
{
/// Construct an AABB centered at (0, 0, 0) with extents (0, 0, 0).
/// Construct an empty AABB centered at (0, 0, 0) with extents (0, 0, 0).
AxisAlignedBoundingBox();
/// Construct an AABB with minimal and maximal values.
......@@ -95,7 +95,7 @@ namespace simox
/// Indicates whether `point` is inside `*this`.
template <class PointT>
bool is_inside(const PointT& p);
bool is_inside(const PointT& p) const;
/// Expand `*this` (in-place) to include `point`.
template <class PointT>
......@@ -117,7 +117,7 @@ namespace simox
private:
/**
* @brief The limits structured as follows:
* The limits structured as follows:
*
* @code
* min max
......@@ -159,7 +159,7 @@ namespace aabb
}
template <class PointT>
bool AxisAlignedBoundingBox::is_inside(const PointT& p)
bool AxisAlignedBoundingBox::is_inside(const PointT& p) const
{
return aabb::is_inside(*this, p);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment