mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2024-12-26 01:50:36 +00:00
fix_rotation compactized
This commit is contained in:
parent
2fe39a6613
commit
334c4715af
@ -1006,8 +1006,7 @@ EX void orthonormalize(transmatrix& T) {
|
||||
EX void fix_rotation(transmatrix& rot) {
|
||||
dynamicval<eGeometry> g(geometry, gSphere);
|
||||
fixmatrix(rot);
|
||||
for(int i=0; i<3; i++) rot[i][3] = rot[3][i] = 0;
|
||||
rot[3][3] = 1;
|
||||
fix4(rot);
|
||||
}
|
||||
|
||||
/** determinant 2x2 */
|
||||
|
Loading…
Reference in New Issue
Block a user