Dependencies: BufferedSerial
Diff: HistogramCell.h
- Revision:
- 4:6ebe8982de0e
- Child:
- 6:1c84602323c8
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/HistogramCell.h Mon May 06 17:15:52 2019 +0000 @@ -0,0 +1,20 @@ +#ifndef UNTITLED2_HISTOGRAMCELL_H +#define UNTITLED2_HISTOGRAMCELL_H + + +class HistogramCell { +public: + int cellVal; + float x; + float y; + + void calculate(int idX, int idY){ + //this is cells position in coordinate system + // we add 2,5cm to get position of middle point of the cell not its starting point + x=idX*5+2.5; + y=idY*5+2.5; + } +}; + + +#endif //UNTITLED2_HISTOGRAMCELL_H