43 5, DecideNbrCtrlPts(PHI1, PHI2),
54 while (deltaPHI <= 0) { PHI2 +=
twopi; deltaPHI +=
twopi; };
95 deltaAngleo2 = (destAngle - srcAngle) / 2;
96 const G4double csa = std::cos(srcAngle);
97 const G4double ssa = std::sin(srcAngle);
98 const G4double tdao2 = std::tan(deltaAngleo2);
116 const G4double cda = std::cos(destAngle);
117 const G4double sda = std::sin(destAngle);
125 srcAngle = destAngle;
133 deltaAngleo2 = (destAngle - srcAngle) / 2;
134 const G4double csa = std::cos(srcAngle);
135 const G4double ssa = std::sin(srcAngle);
136 const G4double tdao2 = std::tan(deltaAngleo2);
154 const G4double cda = std::cos(destAngle);
155 const G4double sda = std::sin(destAngle);
164 G4cerr <<
"\nERROR: G4NURBStubesector::G4NURBStubesector: wrong index,"
166 <<
"\n\tThe tubesector won't be correct."
186 std::ostringstream tmpstr;
187 tmpstr <<
"Tubs" <<
" \tPHI1=" << PHI1 <<
" ; PHI2=" << PHI2;
188 mpwhoami =
new char [tmpstr.str().length() + 1];
207 while (deltaPHI <= 0) { PHI2 +=
twopi; deltaPHI +=
twopi; }
215 return ( 2*((
int)(std::floor(k))) + 7 );