13 auto el =
new TEllipse(0.75, 0.25, .2, .15, 45, 315, 62);
17 double gr_x1[5] = {0.1, 0.3388252, 0.03796561, 0.4176218, 0.1};
18 double gr_y1[5] = {0.5, 0.9644737, 0.7776316, 0.6960526, 0.5};
22 auto bx =
new TBox(.7, .8, .9, .95);
25 auto pv =
new TPave(.05, .1, .3, .2);
28 auto di =
new TDiamond(.05, .25, .3, .4);
31 auto cr =
new TCrown(.5, .5, .1, .15);
35 for (
int i = 0; i < 10000; i++) {
40 if (el->IsInside(
x,
y) || bx->IsInside(
x,
y) || pv->IsInside(
x,
y) || di->IsInside(
x,
y) || cr->IsInside(
x,
y) ||
44 p->SetMarkerColor(
kRed);
winID h TVirtualViewer3D TVirtualGLPainter p
R__EXTERN TRandom * gRandom
A TGraph is an object made of two arrays X and Y with npoints each.
virtual Int_t IsInside(Double_t x, Double_t y) const
Return 1 if the point (x,y) is inside the polygon defined by the graph vertices 0 otherwise.
void Draw(Option_t *chopt="") override
Draw this graph with its current attributes.
virtual void Draw(Option_t *option="")
Default Draw method for all objects.
A TBox with a bordersize and a shadow option.
Double_t Rndm() override
Machine independent random number generator.