| Line | |
|---|
| 1 | #ifndef COSY_Ring
|
|---|
| 2 | #define COSY_Ring
|
|---|
| 3 |
|
|---|
| 4 | #include <vector>
|
|---|
| 5 |
|
|---|
| 6 | #include "Led.h"
|
|---|
| 7 |
|
|---|
| 8 | class Rings;
|
|---|
| 9 |
|
|---|
| 10 | class Ring
|
|---|
| 11 | {
|
|---|
| 12 | private:
|
|---|
| 13 | double fX;
|
|---|
| 14 | double fY;
|
|---|
| 15 | double fR;
|
|---|
| 16 | double fPhi;
|
|---|
| 17 |
|
|---|
| 18 | double fMag;
|
|---|
| 19 |
|
|---|
| 20 | double sqr(double x) { return x*x; }
|
|---|
| 21 |
|
|---|
| 22 | public:
|
|---|
| 23 | Ring(double x=0, double y=0);
|
|---|
| 24 |
|
|---|
| 25 | void SetXY(double x=0, double y=0) { fX=x; fY=y; }
|
|---|
| 26 | void SetPhi(double phi) { fPhi=phi; }
|
|---|
| 27 |
|
|---|
| 28 | double GetX() const { return fX; }
|
|---|
| 29 | double GetY() const { return fY; }
|
|---|
| 30 | double GetR() const { return fR; }
|
|---|
| 31 | double GetPhi() const { return fPhi; }
|
|---|
| 32 |
|
|---|
| 33 | double GetMag() const { return fMag; }
|
|---|
| 34 |
|
|---|
| 35 | bool CalcCenter(Led, Led, Led);
|
|---|
| 36 | void InterpolCenters(const std::vector<Ring> &rings);
|
|---|
| 37 | };
|
|---|
| 38 |
|
|---|
| 39 | #endif
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.