18#include "BDSTransform3D.hh"
20#include "G4RotationMatrix.hh"
22#include "G4ThreeVector.hh"
25BDSTransform3D::BDSTransform3D(
const G4String& nameIn,
33 rotationMatrix(G4RotationMatrix()),
34 dx(dxIn), dy(dyIn), dz(dzIn),
35 dPhi(dPhiIn), dTheta(dThetaIn), dPsi(dPsiIn),
38 rotationMatrix.set(dPhiIn, dThetaIn, dPsiIn);
40 rotationMatrix.getAngleAxis(angle,axis);
46BDSTransform3D::BDSTransform3D(
const G4String& nameIn,
55 rotationMatrix(G4RotationMatrix()),
56 dx(dxIn), dy(dyIn), dz(dzIn),
62 G4ThreeVector axis(axisXIn, axisYIn, axisZIn);
63 rotationMatrix.set(axis,angle);
64 dPhi = rotationMatrix.getPhi();
65 dTheta = rotationMatrix.getTheta();
66 dPsi = rotationMatrix.getPsi();
69BDSTransform3D::~BDSTransform3D()
Abstract class that represents a component of an accelerator.