mirror of
https://github.com/tumic0/GPXSee.git
synced 2024-11-24 19:55:53 +01:00
26 lines
427 B
C
26 lines
427 B
C
|
#ifndef RANGE_H
|
||
|
#define RANGE_H
|
||
|
|
||
|
#include <QtGlobal>
|
||
|
#include <QDebug>
|
||
|
|
||
|
class RangeF
|
||
|
{
|
||
|
public:
|
||
|
RangeF() {_min = 0; _max = 0;}
|
||
|
RangeF(qreal min, qreal max) {_min = min, _max = max;}
|
||
|
|
||
|
qreal min() const {return _min;}
|
||
|
qreal max() const {return _max;}
|
||
|
qreal size() const {return (_max - _min);}
|
||
|
|
||
|
void resize(qreal size);
|
||
|
|
||
|
private:
|
||
|
qreal _min, _max;
|
||
|
};
|
||
|
|
||
|
QDebug operator<<(QDebug dbg, const RangeF &range);
|
||
|
|
||
|
#endif // RANGE_H
|