[apps/graph/value] Add methods -get/set- to the class interval

Change-Id: I77a506a9bd689979a09706bb10403f5db0a90758
This commit is contained in:
Émilie Feral
2016-10-14 10:03:33 +02:00
parent b8b52e2d73
commit f3428f28e5
2 changed files with 31 additions and 0 deletions

View File

@@ -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;
}
}