1 #ifndef ALIMUONPOLYGON_H 2 #define ALIMUONPOLYGON_H 23 AliMUONPolygon(Double_t xpos, Double_t ypos, Double_t halfsizex, Double_t halfsizey);
31 Bool_t
Contains(Double_t x, Double_t y)
const;
40 void SetVertex(Int_t i, Double_t x, Double_t y);
43 Double_t
X(Int_t i)
const {
return fX[i]; }
46 Double_t
Y(Int_t i)
const {
return fY[i]; }
51 void Print(Option_t* opt=
"")
const;
Int_t fN
Number of vertices.
Double_t Y(Int_t i) const
Return the y-coordinate of the i-th vertex.
AliMUONPolygon(Int_t nvertices=5)
Double_t * fX
Vertices x coordinates.
Double_t SignedArea() const
Bool_t IsCounterClockwiseOriented() const
Whether this polygon is oriented counter clockwise.
void Print(Option_t *opt="") const
Int_t NumberOfVertices() const
Get the number of vertices of this polygon.
Double_t X(Int_t i) const
Return the x-coordinate of the i-th vertex.
virtual ~AliMUONPolygon()
void SetVertex(Int_t i, Double_t x, Double_t y)
AliMUONPolygon & operator=(const AliMUONPolygon &rhs)
void ReverseOrientation()
virtual TObject * Clone(const char *="") const
Create a full copy of this object.
Double_t * fY
Vertices y coordinates.
Bool_t Contains(Double_t x, Double_t y) const