# | Line 224 | Line 224 | void SimSetup::makeMolecules(void){ | |
---|---|---|
224 | // in space using the three Euler angles. We assume the standard | |
225 | // unit vector was originally along the z axis below. | |
226 | ||
227 | < | phi = currentAtom->getEulerPhi(); |
228 | < | theta = currentAtom->getEulerTheta(); |
229 | < | psi = currentAtom->getEulerPsi(); |
227 | > | phi = currentAtom->getEulerPhi() * M_PI / 180.0; |
228 | > | theta = currentAtom->getEulerTheta() * M_PI / 180.0; |
229 | > | psi = currentAtom->getEulerPsi()* M_PI / 180.0; |
230 | ||
231 | Axx = (cos(phi) * cos(psi)) - (sin(phi) * cos(theta) * sin(psi)); | |
232 | Axy = (sin(phi) * cos(psi)) + (cos(phi) * cos(theta) * sin(psi)); |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |