mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-03-27 01:29:58 +01:00
[apps/graph/value] Add methods -get/set- to the class interval
Change-Id: I77a506a9bd689979a09706bb10403f5db0a90758
This commit is contained in:
@@ -23,4 +23,28 @@ float Interval::element(int i) {
|
||||
return m_start + i*m_step;
|
||||
}
|
||||
|
||||
float Interval::start() {
|
||||
return m_start;
|
||||
}
|
||||
|
||||
float Interval::end() {
|
||||
return m_end;
|
||||
}
|
||||
|
||||
float Interval::step() {
|
||||
return m_step;
|
||||
}
|
||||
|
||||
void Interval::setStart(float f) {
|
||||
m_start = f;
|
||||
}
|
||||
|
||||
void Interval::setEnd(float f) {
|
||||
m_end = f;
|
||||
}
|
||||
|
||||
void Interval::setStep(float f) {
|
||||
m_step = f;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -9,6 +9,13 @@ public:
|
||||
|
||||
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;
|
||||
|
||||
Reference in New Issue
Block a user