43 5, DecideNbrCtrlPts(PHI1, PHI2),
54 while (deltaPHI <= 0) { PHI2 += twopi; deltaPHI += twopi; };
56 G4int f = (int)floor(deltaPHI / (halfpi));
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);
102 const t_Coord x = csa - ssa*tdao2;
103 const t_Coord y = ssa + csa*tdao2;
106 const G4Float weight = (std::cos(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);
140 const t_Coord x = csa - ssa*tdao2;
141 const t_Coord y = ssa + csa*tdao2;
144 const G4Float weight = (std::cos(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 );
G4DLLIMPORT std::ostream G4cerr
t_indCtrlPt mtotnbrCtrlPts
static void CP(G4NURBS::t_CtrlPt &rcp, t_Coord x, t_Coord y, t_Coord z, t_Coord w)
virtual const char * Whoami() const
G4NURBStubesector(G4double RMIN, G4double RMAX, G4double DZ, G4double PHI1, G4double PHI2)
virtual ~G4NURBStubesector()