- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/Actions/MoleculeAction/RotateToPrincipalAxisSystemAction.cpp
rc89fb4 r83f176 1 /* 2 * Project: MoleCuilder 3 * Description: creates and alters molecular systems 4 * Copyright (C) 2010 University of Bonn. All rights reserved. 5 * Please see the LICENSE file or "Copyright notice" in builder.cpp for details. 6 */ 7 1 8 /* 2 9 * RotateToPrincipalAxisSystemAction.cpp … … 5 12 * Author: heber 6 13 */ 14 15 // include config.h 16 #ifdef HAVE_CONFIG_H 17 #include <config.h> 18 #endif 7 19 8 20 #include "Helpers/MemDebug.hpp" … … 85 97 Vector x = (*iter)->getPosition(); 86 98 x -= *CenterOfGravity; 87 const double mass = (*iter)->getType()-> mass;99 const double mass = (*iter)->getType()->getMass(); 88 100 InertiaTensor.at(0,0) += mass*(x[1]*x[1] + x[2]*x[2]); 89 101 InertiaTensor.at(0,1) += mass*(-x[0]*x[1]); … … 136 148 Vector x = (*iter)->getPosition(); 137 149 x -= *CenterOfGravity; 138 const double mass = (*iter)->getType()-> mass;150 const double mass = (*iter)->getType()->getMass(); 139 151 InertiaTensor.at(0,0) += mass*(x[1]*x[1] + x[2]*x[2]); 140 152 InertiaTensor.at(0,1) += mass*(-x[0]*x[1]);
Note:
See TracChangeset
for help on using the changeset viewer.