void tornado()
{
int numberOfPoints = 200;
int numberOfCircles = 40;
float range = numberOfCircles *
d;
view->
SetRange(0, 0, 0, 4.0 * range, 2.0 * range, range);
for (
int j =
d; j < numberOfCircles *
d; j +=
d) {
for (int i = 1; i < numberOfPoints; i++) {
float csin = sin(2 *
PI / (
double)numberOfPoints * (
double)i) + 1;
float ccos = cos(2 *
PI / (
double)numberOfPoints * (
double)i) + 1;
float esin = sin(2 *
PI / (
double)(numberOfCircles *
d) * (
double)j) + 1;
z = j;
}
}
text->AddText(
"ROOT example: tornado.C");
text->AddText(
Form(
"Execution time: %g sec.", ct));
}
float Float_t
Float 4 bytes (float).
externTBenchmark * gBenchmark
char * Form(const char *fmt,...)
Formats a string in a circular formatting buffer.
virtual void SetFillColor(Color_t fcolor)
Set the fill area color.
virtual void SetMarkerColor(Color_t mcolor=1)
Set the marker color.
virtual void SetMarkerStyle(Style_t mstyle=1)
Set the marker style.
virtual void SetMarkerSize(Size_t msize=1)
Set the marker size.
void Update() override
Update canvas pad buffers.
void SetPoint(Int_t n, Double_t x, Double_t y, Double_t z)
Set point n to x, y, z.
void Draw(Option_t *option="") override
Draws 3-D polymarker with its current attributes.
static TView * CreateView(Int_t system=1, const Double_t *rmin=nullptr, const Double_t *rmax=nullptr)
Create a concrete default 3-d view via the plug-in manager.
virtual void SetRange(const Double_t *min, const Double_t *max)=0