mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-03-22 07:10:40 +01:00
28 lines
403 B
C++
28 lines
403 B
C++
#ifndef GRAPH_VALUES_INTERVAL_H
|
|
#define GRAPH_VALUES_INTERVAL_H
|
|
|
|
namespace Graph {
|
|
|
|
class Interval {
|
|
public:
|
|
Interval(float start, float end, float step);
|
|
|
|
int numberOfElements();
|
|
float element(int i);
|
|
float start();
|
|
float end();
|
|
float step();
|
|
void setStart(float f);
|
|
void setEnd(float f);
|
|
void setStep(float f);
|
|
|
|
private:
|
|
float m_start;
|
|
float m_end;
|
|
float m_step;
|
|
};
|
|
|
|
}
|
|
|
|
#endif
|