36#ifndef G4TWISTTUBSFLATSIDE_HH
37#define G4TWISTTUBSFLATSIDE_HH
66 G4bool isGlobal =
false)
override;
78 G4int areacode[])
override;
81 G4bool isGlobal =
false)
override;
96 G4bool withTol =
true)
override ;
100 void SetCorners()
override;
101 void SetBoundaries()
override;
111 G4ThreeVector SurfPoint (rho*std::cos(phi) , rho*std::sin(phi) , 0);
113 if (isGlobal) {
return (
fRot * SurfPoint +
fTrans); }
121 return std::atan2( dphimin.
y(), dphimin.
x() );
128 return std::atan2( dphimax.
y(), dphimax.
x() );
G4int GetAreaCode(const G4ThreeVector &xx, G4bool withTol=true) override
void GetFacets(G4int m, G4int n, G4double xyz[][3], G4int faces[][4], G4int iside) override
G4double GetSurfaceArea() override
~G4TwistTubsFlatSide() override
G4TwistTubsFlatSide(const G4String &name, const G4RotationMatrix &rot, const G4ThreeVector &tlate, const G4ThreeVector &n, const EAxis axis1=kRho, const EAxis axis2=kPhi, G4double axis0min=-kInfinity, G4double axis1min=-kInfinity, G4double axis0max=kInfinity, G4double axis1max=kInfinity)
G4double GetBoundaryMin(G4double phi) override
G4int DistanceToSurface(const G4ThreeVector &gp, const G4ThreeVector &gv, G4ThreeVector gxx[], G4double distance[], G4int areacode[], G4bool isvalid[], EValidate validate=kValidateWithTol) override
G4ThreeVector GetNormal(const G4ThreeVector &, G4bool isGlobal=false) override
G4double GetBoundaryMax(G4double phi) override
G4ThreeVector SurfacePoint(G4double, G4double, G4bool isGlobal=false) override
static const G4int sC0Max1Max
G4ThreeVector GetCorner(G4int areacode) const
static const G4int sC0Max1Min