vaLLEY TRY

Dependencies:   mbed

Committer:
shut
Date:
Fri Apr 05 14:28:09 2019 +0000
Revision:
6:2cd6ae395c0f
Parent:
4:5a892f5ab5a8
retwerwer

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;
shut 6:2cd6ae395c0f 8 float x;
shut 6:2cd6ae395c0f 9 float 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 #endif //UNTITLED2_HISTOGRAMCELL_H