Changeset 567b7f for molecuilder/src/molecule_geometry.cpp
- Timestamp:
- Oct 7, 2009, 1:11:28 PM (16 years ago)
- Children:
- 0cd3b2
- Parents:
- 8ffe32
- git-author:
- Frederik Heber <heber@…> (10/07/09 12:14:15)
- git-committer:
- Frederik Heber <heber@…> (10/07/09 13:11:28)
- File:
-
- 1 edited
-
molecuilder/src/molecule_geometry.cpp (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
molecuilder/src/molecule_geometry.cpp
r8ffe32 r567b7f 200 200 ptr = ptr->next; 201 201 for (int j=0;j<MDSteps;j++) 202 Trajectories[ptr].R.at(j).Scale(factor);202 ptr->Trajectory.R.at(j).Scale(factor); 203 203 ptr->x.Scale(factor); 204 204 } … … 215 215 ptr = ptr->next; 216 216 for (int j=0;j<MDSteps;j++) 217 Trajectories[ptr].R.at(j).Translate(trans);217 ptr->Trajectory.R.at(j).Translate(trans); 218 218 ptr->x.Translate(trans); 219 219 } … … 438 438 ptr->x.x[2] = -sin(alpha) * tmp + cos(alpha) * ptr->x.x[2]; 439 439 for (int j=0;j<MDSteps;j++) { 440 tmp = Trajectories[ptr].R.at(j).x[0];441 Trajectories[ptr].R.at(j).x[0] = cos(alpha) * tmp + sin(alpha) * Trajectories[ptr].R.at(j).x[2];442 Trajectories[ptr].R.at(j).x[2] = -sin(alpha) * tmp + cos(alpha) * Trajectories[ptr].R.at(j).x[2];440 tmp = ptr->Trajectory.R.at(j).x[0]; 441 ptr->Trajectory.R.at(j).x[0] = cos(alpha) * tmp + sin(alpha) * ptr->Trajectory.R.at(j).x[2]; 442 ptr->Trajectory.R.at(j).x[2] = -sin(alpha) * tmp + cos(alpha) * ptr->Trajectory.R.at(j).x[2]; 443 443 } 444 444 } … … 461 461 ptr->x.x[2] = -sin(alpha) * tmp + cos(alpha) * ptr->x.x[2]; 462 462 for (int j=0;j<MDSteps;j++) { 463 tmp = Trajectories[ptr].R.at(j).x[1];464 Trajectories[ptr].R.at(j).x[1] = cos(alpha) * tmp + sin(alpha) * Trajectories[ptr].R.at(j).x[2];465 Trajectories[ptr].R.at(j).x[2] = -sin(alpha) * tmp + cos(alpha) * Trajectories[ptr].R.at(j).x[2];463 tmp = ptr->Trajectory.R.at(j).x[1]; 464 ptr->Trajectory.R.at(j).x[1] = cos(alpha) * tmp + sin(alpha) * ptr->Trajectory.R.at(j).x[2]; 465 ptr->Trajectory.R.at(j).x[2] = -sin(alpha) * tmp + cos(alpha) * ptr->Trajectory.R.at(j).x[2]; 466 466 } 467 467 }
Note:
See TracChangeset
for help on using the changeset viewer.
