Import Geant4 3.0.0 source tree
This commit is contained in:
@@ -5,8 +5,8 @@
|
||||
// based on the Program) you indicate your acceptance of this statement,
|
||||
// and all its terms.
|
||||
//
|
||||
// $Id: G4GRSVolume.cc,v 1.2 1999/12/15 14:50:26 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-02-00 $
|
||||
// $Id: G4GRSVolume.cc,v 1.3 2000/11/01 16:51:09 gcosmo Exp $
|
||||
// GEANT4 tag $Name: geant4-03-00 $
|
||||
//
|
||||
//
|
||||
// class G4GRSVolume Implementation
|
||||
@@ -17,3 +17,37 @@ G4GRSVolume::~G4GRSVolume()
|
||||
{
|
||||
delete frot; // safe if null
|
||||
}
|
||||
|
||||
G4GRSVolume::G4GRSVolume(const G4GRSVolume& right)
|
||||
{
|
||||
if ((&right) && (&right != this))
|
||||
{
|
||||
fvol = right.fvol;
|
||||
ftlate = right.ftlate;
|
||||
if (frot)
|
||||
{
|
||||
delete frot;
|
||||
frot = 0;
|
||||
}
|
||||
if (right.frot)
|
||||
frot = new G4RotationMatrix(*(right.frot));
|
||||
}
|
||||
}
|
||||
|
||||
G4GRSVolume& G4GRSVolume::operator=(const G4GRSVolume& right)
|
||||
{
|
||||
if (&right == this) return *this;
|
||||
if (&right)
|
||||
{
|
||||
fvol = right.fvol;
|
||||
ftlate = right.ftlate;
|
||||
if (frot)
|
||||
{
|
||||
delete frot;
|
||||
frot = 0;
|
||||
}
|
||||
if (right.frot)
|
||||
frot = new G4RotationMatrix(*(right.frot));
|
||||
}
|
||||
return *this;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user