Changeset 921097 for molecuilder/src
- Timestamp:
- Oct 17, 2009, 4:49:59 PM (16 years ago)
- Children:
- d70bf6
- Parents:
- 25e34b
- Location:
- molecuilder/src
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
molecuilder/src/helpers.hpp
-
Property mode
changed from
100755
to100644
r25e34b r921097 55 55 56 56 /** Flips two values. 57 * \param *x pointer tofirst value58 * \param *y pointer tosecond value57 * \param x first value 58 * \param y second value 59 59 */ 60 template <typename T> void flip(T *x, T *y)60 template <typename T> void flip(T &x, T &y) 61 61 { 62 62 T tmp; 63 tmp = *x;64 *x = *y;65 *y = tmp;63 tmp = x; 64 x = y; 65 y = tmp; 66 66 }; 67 67 -
Property mode
changed from
-
molecuilder/src/vector.cpp
-
Property mode
changed from
100755
to100644
r25e34b r921097 1139 1139 break; 1140 1140 case 2: 1141 flip( &x1->x[0],&x1->x[1]);1142 flip( &x2->x[0],&x2->x[1]);1143 flip( &y->x[0],&y->x[1]);1144 //flip( &x[0],&x[1]);1145 flip( &x1->x[1],&x1->x[2]);1146 flip( &x2->x[1],&x2->x[2]);1147 flip( &y->x[1],&y->x[2]);1148 //flip( &x[1],&x[2]);1141 flip(x1->x[0],x1->x[1]); 1142 flip(x2->x[0],x2->x[1]); 1143 flip(y->x[0],y->x[1]); 1144 //flip(x[0],x[1]); 1145 flip(x1->x[1],x1->x[2]); 1146 flip(x2->x[1],x2->x[2]); 1147 flip(y->x[1],y->x[2]); 1148 //flip(x[1],x[2]); 1149 1149 case 1: 1150 flip( &x1->x[0],&x1->x[1]);1151 flip( &x2->x[0],&x2->x[1]);1152 flip( &y->x[0],&y->x[1]);1153 //flip( &x[0],&x[1]);1154 flip( &x1->x[1],&x1->x[2]);1155 flip( &x2->x[1],&x2->x[2]);1156 flip( &y->x[1],&y->x[2]);1157 //flip( &x[1],&x[2]);1150 flip(x1->x[0],x1->x[1]); 1151 flip(x2->x[0],x2->x[1]); 1152 flip(y->x[0],y->x[1]); 1153 //flip(x[0],x[1]); 1154 flip(x1->x[1],x1->x[2]); 1155 flip(x2->x[1],x2->x[2]); 1156 flip(y->x[1],y->x[2]); 1157 //flip(x[1],x[2]); 1158 1158 break; 1159 1159 } … … 1224 1224 break; 1225 1225 case 2: 1226 flip( &x1->x[0],&x1->x[1]);1227 flip( &x2->x[0],&x2->x[1]);1228 flip( &y->x[0],&y->x[1]);1229 flip( &x[0],&x[1]);1230 flip( &x1->x[1],&x1->x[2]);1231 flip( &x2->x[1],&x2->x[2]);1232 flip( &y->x[1],&y->x[2]);1233 flip( &x[1],&x[2]);1226 flip(x1->x[0],x1->x[1]); 1227 flip(x2->x[0],x2->x[1]); 1228 flip(y->x[0],y->x[1]); 1229 flip(x[0],x[1]); 1230 flip(x1->x[1],x1->x[2]); 1231 flip(x2->x[1],x2->x[2]); 1232 flip(y->x[1],y->x[2]); 1233 flip(x[1],x[2]); 1234 1234 case 1: 1235 flip( &x1->x[0],&x1->x[1]);1236 flip( &x2->x[0],&x2->x[1]);1237 flip( &y->x[0],&y->x[1]);1238 //flip( &x[0],&x[1]);1239 flip( &x1->x[1],&x1->x[2]);1240 flip( &x2->x[1],&x2->x[2]);1241 flip( &y->x[1],&y->x[2]);1242 flip( &x[1],&x[2]);1235 flip(x1->x[0],x1->x[1]); 1236 flip(x2->x[0],x2->x[1]); 1237 flip(y->x[0],y->x[1]); 1238 //flip(x[0],x[1]); 1239 flip(x1->x[1],x1->x[2]); 1240 flip(x2->x[1],x2->x[2]); 1241 flip(y->x[1],y->x[2]); 1242 flip(x[1],x[2]); 1243 1243 break; 1244 1244 } -
Property mode
changed from
Note:
See TracChangeset
for help on using the changeset viewer.