Import Geant4 10.6.0 source tree
This commit is contained in:
+31
-16
@@ -43,7 +43,7 @@ namespace HepGeom {
|
||||
public:
|
||||
/**
|
||||
* Default constructor. */
|
||||
Normal3D() {}
|
||||
Normal3D() = default;
|
||||
|
||||
/**
|
||||
* Constructor from three numbers. */
|
||||
@@ -56,7 +56,11 @@ namespace HepGeom {
|
||||
|
||||
/**
|
||||
* Copy constructor. */
|
||||
Normal3D(const Normal3D<float> & v) : BasicVector3D<float>(v) {}
|
||||
Normal3D(const Normal3D<float> &) = default;
|
||||
|
||||
/**
|
||||
* Move constructor. */
|
||||
Normal3D(Normal3D<float> &&) = default;
|
||||
|
||||
/**
|
||||
* Constructor from BasicVector3D<float>. */
|
||||
@@ -64,20 +68,23 @@ namespace HepGeom {
|
||||
|
||||
/**
|
||||
* Destructor. */
|
||||
~Normal3D() {}
|
||||
~Normal3D() = default;
|
||||
|
||||
/**
|
||||
* Assignment. */
|
||||
Normal3D<float> & operator=(const Normal3D<float> & v) {
|
||||
set(v.x(),v.y(),v.z()); return *this;
|
||||
}
|
||||
Normal3D<float> & operator=(const Normal3D<float> &) = default;
|
||||
|
||||
/**
|
||||
* Assignment from BasicVector3D<float>. */
|
||||
Normal3D<float> & operator=(const BasicVector3D<float> & v) {
|
||||
set(v.x(),v.y(),v.z()); return *this;
|
||||
this->BasicVector3D<float>::operator=(v);
|
||||
return *this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Move assignment. */
|
||||
Normal3D<float> & operator=(Normal3D<float> &&) = default;
|
||||
|
||||
/**
|
||||
* Transformation by Transform3D. */
|
||||
Normal3D<float> & transform(const Transform3D & m);
|
||||
@@ -101,7 +108,7 @@ namespace HepGeom {
|
||||
public:
|
||||
/**
|
||||
* Default constructor. */
|
||||
Normal3D() {}
|
||||
Normal3D() = default;
|
||||
|
||||
/**
|
||||
* Constructor from three numbers. */
|
||||
@@ -119,7 +126,11 @@ namespace HepGeom {
|
||||
|
||||
/**
|
||||
* Copy constructor. */
|
||||
Normal3D(const Normal3D<double> & v) : BasicVector3D<double>(v) {}
|
||||
Normal3D(const Normal3D<double> &) = default;
|
||||
|
||||
/**
|
||||
* Move constructor. */
|
||||
Normal3D(Normal3D<double> &&) = default;
|
||||
|
||||
/**
|
||||
* Constructor from BasicVector3D<float>. */
|
||||
@@ -131,7 +142,7 @@ namespace HepGeom {
|
||||
|
||||
/**
|
||||
* Destructor. */
|
||||
~Normal3D() {}
|
||||
~Normal3D() = default;
|
||||
|
||||
/**
|
||||
* Constructor from CLHEP::Hep3Vector.
|
||||
@@ -145,27 +156,31 @@ namespace HepGeom {
|
||||
* Conversion (cast) to CLHEP::Hep3Vector.
|
||||
* This operator is needed only for backward compatibility and
|
||||
* in principle should not exit.
|
||||
*/
|
||||
*/
|
||||
operator CLHEP::Hep3Vector () const { return CLHEP::Hep3Vector(x(),y(),z()); }
|
||||
|
||||
/**
|
||||
* Assignment. */
|
||||
Normal3D<double> & operator=(const Normal3D<double> & v) {
|
||||
set(v.x(),v.y(),v.z()); return *this;
|
||||
}
|
||||
Normal3D<double> & operator=(const Normal3D<double> &) = default;
|
||||
|
||||
/**
|
||||
* Assignment from BasicVector3D<float>. */
|
||||
Normal3D<double> & operator=(const BasicVector3D<float> & v) {
|
||||
set(v.x(),v.y(),v.z()); return *this;
|
||||
this->BasicVector3D<double>::operator=(v);
|
||||
return *this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Assignment from BasicVector3D<double>. */
|
||||
Normal3D<double> & operator=(const BasicVector3D<double> & v) {
|
||||
set(v.x(),v.y(),v.z()); return *this;
|
||||
this->BasicVector3D<double>::operator=(v);
|
||||
return *this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Move assignment. */
|
||||
Normal3D<double> & operator=(Normal3D<double> &&) = default;
|
||||
|
||||
/**
|
||||
* Transformation by Transform3D. */
|
||||
Normal3D<double> & transform(const Transform3D & m);
|
||||
|
||||
Reference in New Issue
Block a user