File indexing completed on 2025-01-18 09:58:57
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015
0016
0017
0018
0019
0020
0021
0022
0023
0024
0025
0026
0027
0028
0029 inline
0030 G4int G4Polyhedra::GetNumSide() const
0031 {
0032 return numSide;
0033 }
0034
0035 inline
0036 G4double G4Polyhedra::GetStartPhi() const
0037 {
0038 return startPhi;
0039 }
0040
0041 inline
0042 G4double G4Polyhedra::GetEndPhi() const
0043 {
0044 return endPhi;
0045 }
0046
0047 inline
0048 G4double G4Polyhedra::GetSinStartPhi() const
0049 {
0050 return std::sin(startPhi);
0051 }
0052
0053 inline
0054 G4double G4Polyhedra::GetCosStartPhi() const
0055 {
0056 return std::cos(startPhi);
0057 }
0058
0059 inline
0060 G4double G4Polyhedra::GetSinEndPhi() const
0061 {
0062 return std::sin(endPhi);
0063 }
0064
0065 inline
0066 G4double G4Polyhedra::GetCosEndPhi() const
0067 {
0068 return std::cos(endPhi);
0069 }
0070
0071 inline
0072 G4bool G4Polyhedra::IsOpen() const
0073 {
0074 return phiIsOpen;
0075 }
0076
0077 inline
0078 G4bool G4Polyhedra::IsGeneric() const
0079 {
0080 return genericPgon;
0081 }
0082
0083 inline
0084 G4int G4Polyhedra::GetNumRZCorner() const
0085 {
0086 return numCorner;
0087 }
0088
0089 inline
0090 G4PolyhedraSideRZ G4Polyhedra::GetCorner( const G4int index ) const
0091 {
0092 return corners[index];
0093 }
0094
0095 inline
0096 G4PolyhedraHistorical* G4Polyhedra::GetOriginalParameters() const
0097 {
0098 return original_parameters;
0099 }
0100
0101 inline
0102 void G4Polyhedra::SetOriginalParameters(G4PolyhedraHistorical* pars)
0103 {
0104 if (pars == nullptr)
0105 {
0106 G4Exception("G4Polyhedra::SetOriginalParameters()", "GeomSolids0002",
0107 FatalException, "NULL pointer to parameters!");
0108 }
0109 *original_parameters = *pars;
0110 fCubicVolume = 0.;
0111 fRebuildPolyhedron = true;
0112 }