Ruprecht Altenburger
/
RT2_P3_students_G4
Template for group 4
Fork of RT2_P3_students by
Diff: LinearCharacteristics.cpp
- Revision:
- 10:85840c065e00
- Parent:
- 7:01a7363583b2
--- a/LinearCharacteristics.cpp Tue Apr 24 09:17:04 2018 +0000 +++ b/LinearCharacteristics.cpp Fri Apr 27 06:34:29 2018 +0000 @@ -2,20 +2,3 @@ using namespace std; -LinearCharacteristics::LinearCharacteristics(float gain,float offset){ // standard lin characteristics - this->gain = gain; - this->offset = offset; -} - -LinearCharacteristics::LinearCharacteristics(float xmin,float xmax, float ymin, float ymax){ // standard lin characteristics - this->gain = (ymax - ymin)/(xmax - xmin); - this->offset = xmax - ymax/this->gain; -} - -LinearCharacteristics::~LinearCharacteristics() {} - - -float LinearCharacteristics::evaluate(float x) -{ -return this->gain*(x - this->offset); - }