ads-game:: fixed convergent/divergent spirals

This commit is contained in:
Zeno Rogue 2022-09-29 14:25:18 +02:00
parent 80c02c7e38
commit f161f9bf0a
1 changed files with 3 additions and 3 deletions

View File

@ -85,10 +85,10 @@ struct rock_generator {
/* we need to find the limit of this as appr -> inf */
ld appr = 5;
transmatrix T = lorentz(2, 3, -appr) * cspin(0, 2, exp(-appr)) * lorentz(2, 3, appr);
/* all the entries happen to be multiples of .5 */
/* all the entries happen to be multiples of .125 */
for(int i=0; i<4; i++) for(int j=0; j<4; j++) {
auto& b = T[i][j];
b = floor(b * 10 + .5) / 10;
b = floor(b * 8 + .5) / 8;
}
return T;
}
@ -99,7 +99,7 @@ struct rock_generator {
transmatrix T = lorentz(2, 3, appr) * cspin(0, 2, exp(-appr)) * lorentz(2, 3, -appr);
for(int i=0; i<4; i++) for(int j=0; j<4; j++) {
auto& b = T[i][j];
b = floor(b * 10 + .5) / 10;
b = floor(b * 8 + .5) / 8;
}
return T;
}