Skip to content
Snippets Groups Projects
Commit ea4363f6 authored by Wuttke, Joachim's avatar Wuttke, Joachim
Browse files

+ ZLimits::thickness

parent 0d3c27b1
No related branches found
No related tags found
1 merge request!153Replace Slice::m_thickness by Slice::m_zRange; simplify computations in ProfileHelper and ProcessedSample
...@@ -32,7 +32,6 @@ bool ZLimits::isFinite() const ...@@ -32,7 +32,6 @@ bool ZLimits::isFinite() const
return !std::isinf(m_zmin) && !std::isinf(m_zmax); return !std::isinf(m_zmin) && !std::isinf(m_zmax);
} }
ZLimits ZLimits::enclosingInterval(const ZLimits& left, const ZLimits& right) ZLimits ZLimits::enclosingInterval(const ZLimits& left, const ZLimits& right)
{ {
return {std::min(left.zBottom(), right.zBottom()), std::max(left.zTop(), right.zTop())}; return {std::min(left.zBottom(), right.zBottom()), std::max(left.zTop(), right.zTop())};
......
...@@ -37,6 +37,7 @@ public: ...@@ -37,6 +37,7 @@ public:
double zBottom() const { return m_zmin; } double zBottom() const { return m_zmin; }
double zTop() const { return m_zmax; } double zTop() const { return m_zmax; }
double thickness() const { return m_zmax - m_zmin; }
static constexpr double inf = std::numeric_limits<double>::infinity(); static constexpr double inf = std::numeric_limits<double>::infinity();
......
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