1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-11-23 21:07:17 +00:00

fixed random_spin() (wrong multiplication order)

This commit is contained in:
Zeno Rogue 2019-05-11 15:15:28 +02:00
parent 00b601b1de
commit c90eeccbbe

View File

@ -257,7 +257,7 @@ transmatrix random_spin() {
ld alpha2 = acos(randd() * 2 - 1);
ld alpha = randd() * 2 * M_PI;
ld alpha3 = randd() * 2 * M_PI;
return cspin(0, 1, alpha) * cspin(0, 2, alpha2) * cspin(1, 2, alpha3);
return cspin(0, 2, alpha2) * cspin(0, 1, alpha) * cspin(1, 2, alpha3);
}
}