* ./hurricane :
- New: ability to shrink bounds of an Interval.
This commit is contained in:
parent
f2fa2bf4c1
commit
d1ce1ce975
|
@ -140,6 +140,22 @@ Interval& Interval::makeEmpty()
|
|||
return *this;
|
||||
}
|
||||
|
||||
Interval& Interval::shrinkVMin(const DbU::Unit& vMin)
|
||||
// **************************************************
|
||||
{
|
||||
if ( vMin > _vMin )
|
||||
_vMin = vMin;
|
||||
return *this;
|
||||
}
|
||||
|
||||
Interval& Interval::shrinkVMax(const DbU::Unit& vMax)
|
||||
// **************************************************
|
||||
{
|
||||
if ( vMax < _vMax )
|
||||
_vMax = vMax;
|
||||
return *this;
|
||||
}
|
||||
|
||||
Interval& Interval::inflate(const DbU::Unit& dv)
|
||||
// ****************************************
|
||||
{
|
||||
|
|
|
@ -71,6 +71,8 @@ class Interval {
|
|||
// ********
|
||||
|
||||
public: Interval& makeEmpty();
|
||||
public: Interval& shrinkVMin(const DbU::Unit& vMin);
|
||||
public: Interval& shrinkVMax(const DbU::Unit& vMax);
|
||||
public: Interval& inflate(const DbU::Unit& dv);
|
||||
public: Interval& inflate(const DbU::Unit& dvMin, const DbU::Unit& dvMax);
|
||||
public: Interval& merge(const DbU::Unit& v);
|
||||
|
|
Loading…
Reference in New Issue