-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathRetta.h
More file actions
42 lines (28 loc) · 706 Bytes
/
Retta.h
File metadata and controls
42 lines (28 loc) · 706 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
#ifndef RETTA_H
#define RETTA_H
#include "TObject.h"
#include "Punto.h"
class Retta : public TObject
{
public:
Retta();
Retta(const Retta&);
Retta(const Retta *r);
Retta(Punto p, double th, double ph);
Retta(Punto *p, double th, double ph);
virtual ~Retta();
Punto GetPunto() const {return fp;}
double GetX() const {return fp.GetX();}
double GetY() const {return fp.GetY();}
double GetZ() const {return fp.GetZ();}
double GetTheta() const {return fth;}
double GetPhi() const {return fph;}
void SetTheta(double theta){this->fth=theta;}
void SetPhi(double phi){this->fph=phi;}
private:
Punto fp;
double fth;
double fph;
ClassDef(Retta,1)
};
#endif