56 B1DRange(
double fStartValue1,
double fStartValue2)
150 template<
typename charT,
typename traits>
151 inline std::basic_ostream<charT, traits>&
operator<<(
152 std::basic_ostream<charT, traits>& stream,
const B1DRange& range)
154 return stream <<
"[" << range.getMinimum() <<
", " << range.getMaximum() <<
"]";
A one-dimensional interval over doubles.
double getRange() const
return difference between upper and lower value. returns 0 for empty sets.
bool operator!=(const B1DRange &rRange) const
bool isEmpty() const
Check if the interval set is empty.
bool overlaps(const B1DRange &rRange) const
yields true if rRange at least partly inside set
B1DRange(double fStartValue1, double fStartValue2)
Create proper interval between the two given double values.
void expand(double fValue)
add fValue to the set, expanding as necessary
bool overlapsMore(const B1DRange &rRange) const
yields true if overlaps(rRange) does, and the overlap is larger than infinitesimal
void expand(const B1DRange &rRange)
add rRange to the set, expanding as necessary
B1DRange(double fStartValue)
Create degenerate interval consisting of a single double number.
double clamp(double fValue) const
clamp value on range
double getMinimum() const
get lower bound of the set. returns arbitrary values for empty sets.
double getCenter() const
return middle of upper and lower value. returns 0 for empty sets.
::basegfx::BasicRange< double, DoubleTraits > maRange
double getMaximum() const
get upper bound of the set. returns arbitrary values for empty sets.
bool isInside(double fValue) const
yields true if value is contained in set
void intersect(const B1DRange &rRange)
calc set intersection
bool operator==(const B1DRange &rRange) const
bool overlaps(const BasicRange &rRange) const
bool overlapsMore(const BasicRange &rRange) const
bool isInside(T nValue) const
void intersect(const BasicRange &rRange)
Traits::DifferenceType getRange() const
Reference< XOutputStream > stream
std::basic_ostream< charT, traits > & operator<<(std::basic_ostream< charT, traits > &stream, BColor const &color)