35 using namespace TMath;
42 dst.
X() = 6 *
Cos(u) * (1. +
Sin(u)) + r *
Cos(v +
Pi());
43 dst.
Y() = 16 *
Sin(u);
51 TCanvas *c =
new TCanvas(
"canvas",
"Parametric surfaces with gl", 100, 10, 700, 700);
56 "1.2 ^ v * sin(u) ^ 2 * sin(v)",
57 "1.2 ^ v * sin(u) * cos(u)",
58 "1.2 ^ v * sin(u) ^ 2 * cos(v)",
65 "cos(u) / (sqrt(2) + sin(v))",
66 "sin(u) / (sqrt(2) + sin(v))",
67 "1. / (sqrt(2) + cos(v))",
static double p3(double t, double a, double b, double c, double d)
constexpr Double_t TwoPi()
R__EXTERN TStyle * gStyle
TVirtualPad * cd(Int_t subpadnumber=0)
Set current canvas & pad.
virtual void Draw(Option_t *option="")
Default Draw method for all objects.
3 component (x/y/z) vertex class.
static double p2(double t, double a, double b, double c)
void SetCanvasPreferGL(Bool_t prefer=kTRUE)
static double p1(double t, double a, double b)
A parametric surface is a surface defined by a parametric equation, involving two parameters (u...
virtual void Divide(Int_t nx=1, Int_t ny=1, Float_t xmargin=0.01, Float_t ymargin=0.01, Int_t color=0)
Automatic pad generation by division.