34#ifndef G4TWISTTRAPPARALLELSIDE_HH
35#define G4TWISTTRAPPARALLELSIDE_HH
89 virtual void SetCorners();
90 virtual void SetBoundaries();
152 return ( fDy2plus1 + fDy2minus1 * ( 2 * phi ) / fPhiTwist ) ;
158 return GetValueB(phi)/2. ;
162G4TwistTrapParallelSide::
167 G4ThreeVector SurfPoint ( u*std::cos(phi) - Xcoef(phi)*std::sin(phi)
168 + fdeltaX*phi/fPhiTwist,
169 u*std::sin(phi) + Xcoef(phi)*std::cos(phi)
170 + fdeltaY*phi/fPhiTwist,
171 2*fDz*phi/fPhiTwist );
172 if (isGlobal) {
return (
fRot * SurfPoint +
fTrans); }
180 return -(fPhiTwist*(fDx2 + fDx4 - fDy2plus1*fTAlph)
181 + 2*fDx4minus2*phi - 2*fDy2minus1*fTAlph*phi)/(2.*fPhiTwist) ;
187 return (fDx2 + fDx4 + fDy2plus1*fTAlph)/ 2.
188 + ((fDx4minus2 + fDy2minus1*fTAlph)*phi)/fPhiTwist ;
192G4double G4TwistTrapParallelSide::GetSurfaceArea()
194 return 2*fDx4plus2*fDz ;
204 2*fDz*std::cos(phi) ,
205 -(fDy2minus1 + fPhiTwist*u + fdeltaY*std::cos(phi)
206 -fdeltaX*std::sin(phi))) ;
virtual G4ThreeVector GetNormal(const G4ThreeVector &xx, G4bool isGlobal=false)
virtual G4int DistanceToSurface(const G4ThreeVector &gp, const G4ThreeVector &gv, G4ThreeVector gxx[], G4double distance[], G4int areacode[], G4bool isvalid[], EValidate validate=kValidateWithTol)
virtual ~G4TwistTrapParallelSide()