1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2025-11-06 08:43:02 +00:00
This commit is contained in:
Zeno Rogue
2018-04-03 23:39:18 +02:00
parent 857c8c41cb
commit 22a92059b6
18 changed files with 217 additions and 50 deletions

View File

@@ -322,6 +322,11 @@ transmatrix spintox(const hyperpoint& H) {
return T;
}
void set_column(transmatrix& T, int i, const hyperpoint& H) {
for(int j=0; j<3; j++)
T[j][i] = H[j];
}
// reverse of spintox(H)
transmatrix rspintox(const hyperpoint& H) {
transmatrix T = Id;