36#ifndef G4TWISTTUBSHYPESIDE_HH
37#define G4TWISTTUBSHYPESIDE_HH
50 const G4int handedness,
87 G4int areacode[])
override;
90 G4bool isGlobal =
false)
override ;
94 G4bool isglobal =
false)
const ;
97 G4bool isGlobal =
false)
override ;
112 G4bool withTol =
true)
override;
115 void SetCorners()
override;
117 void SetCorners(
G4double EndInnerRadius[2],
122 void SetBoundaries()
override;
155 return std::sqrt(fR02 + tmpp.
z() * tmpp.
z() * fTan2Stereo);
162 G4double rho = std::sqrt(fR02 + z * z * fTan2Stereo) ;
164 G4ThreeVector SurfPoint (rho*std::cos(phi), rho*std::sin(phi), z) ;
166 if (isGlobal) {
return (
fRot * SurfPoint +
fTrans); }
176 return std::atan2( lowerlimit.
y(), lowerlimit.
x() ) ;
185 return std::atan2( upperlimit.
y(), upperlimit.
x() ) ;
HepRotation inverse() const
G4ThreeVector GetNormal(const G4ThreeVector &xx, G4bool isGlobal=false) override
G4int DistanceToSurface(const G4ThreeVector &gp, const G4ThreeVector &gv, G4ThreeVector gxx[], G4double distance[], G4int areacode[], G4bool isvalid[], EValidate validate=kValidateWithTol) override
EInside Inside(const G4ThreeVector &gp)
~G4TwistTubsHypeSide() override
G4ThreeVector SurfacePoint(G4double, G4double, G4bool isGlobal=false) override
G4double GetBoundaryMin(G4double phi) override
G4TwistTubsHypeSide(const G4String &name, const G4RotationMatrix &rot, const G4ThreeVector &tlate, const G4int handedness, const G4double kappa, const G4double tanstereo, const G4double r0, const EAxis axis0=kPhi, const EAxis axis1=kZAxis, G4double axis0min=-kInfinity, G4double axis1min=-kInfinity, G4double axis0max=kInfinity, G4double axis1max=kInfinity)
G4double GetSurfaceArea() override
G4double GetRhoAtPZ(const G4ThreeVector &p, G4bool isglobal=false) const
void GetFacets(G4int m, G4int n, G4double xyz[][3], G4int faces[][4], G4int iside) override
G4double GetBoundaryMax(G4double phi) override
static const G4int sAxisMax
static const G4int sAxis0
static const G4int sAxisMin
virtual G4ThreeVector GetBoundaryAtPZ(G4int areacode, const G4ThreeVector &p) const