Changeset 8e52aa for molecuilder
- Timestamp:
- Sep 9, 2008, 3:32:16 PM (17 years ago)
- Children:
- 55ebd0
- Parents:
- 79cd79
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
molecuilder/src/vector.cpp
r79cd79 r8e52aa 154 154 for (int i=NDIM;i--;) 155 155 res += this->x[i]*this->x[i]; 156 res = 1./sqrt(res); 156 if (fabs(res) > MYEPSILON) 157 res = 1./sqrt(res); 157 158 Scale(&res); 158 159 };
Note:
See TracChangeset
for help on using the changeset viewer.