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

Make functions const

parent 06917040
No related branches found
No related tags found
No related merge requests found
......@@ -267,7 +267,7 @@ namespace simox
return from_box_frame(p).template cast<T>();
}
bool contains(const vector_t& p)
bool contains(const vector_t& p) const
{
const vector_t b = to_box_frame(p);
const auto check_dim = [&](int i)
......@@ -279,7 +279,7 @@ namespace simox
return check_dim(0) && check_dim(1) && check_dim(2);
}
bool contains_by(const vector_t& p, float_t thresh = 0)
bool contains_by(const vector_t& p, float_t thresh = 0) const
{
const vector_t b = to_box_frame(p);
const auto check_dim = [&](int i)
......
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