SRM / Mbed 2 deprecated LabWork2VFHnew

Dependencies:   mbed

Committer:
jsobiecki
Date:
Sun Mar 24 01:11:20 2019 +0000
Revision:
4:5a892f5ab5a8
Child:
6:2cd6ae395c0f
arrays added

Who changed what in which revision?

UserRevisionLine numberNew contents of line
jsobiecki 4:5a892f5ab5a8 1 #ifndef UNTITLED2_HISTOGRAMCELL_H
jsobiecki 4:5a892f5ab5a8 2 #define UNTITLED2_HISTOGRAMCELL_H
jsobiecki 4:5a892f5ab5a8 3
jsobiecki 4:5a892f5ab5a8 4
jsobiecki 4:5a892f5ab5a8 5 class HistogramCell {
jsobiecki 4:5a892f5ab5a8 6 public:
jsobiecki 4:5a892f5ab5a8 7 int cellVal;
jsobiecki 4:5a892f5ab5a8 8 double x;
jsobiecki 4:5a892f5ab5a8 9 double y;
jsobiecki 4:5a892f5ab5a8 10
jsobiecki 4:5a892f5ab5a8 11 void calculate(int idX, int idY){
jsobiecki 4:5a892f5ab5a8 12 //this is cells position in coordinate system
jsobiecki 4:5a892f5ab5a8 13 // we add 2,5cm to get position of middle point of the cell not its starting point
jsobiecki 4:5a892f5ab5a8 14 x=idX*5+2.5;
jsobiecki 4:5a892f5ab5a8 15 y=idY*5+2.5;
jsobiecki 4:5a892f5ab5a8 16
jsobiecki 4:5a892f5ab5a8 17 }
jsobiecki 4:5a892f5ab5a8 18 };
jsobiecki 4:5a892f5ab5a8 19
jsobiecki 4:5a892f5ab5a8 20
jsobiecki 4:5a892f5ab5a8 21 #endif //UNTITLED2_HISTOGRAMCELL_H