mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-01-30 02:44:51 +00:00
solv:: added missing fixmatrix
This commit is contained in:
parent
7eae04e2ea
commit
36dbe1d63b
10
sol.cpp
10
sol.cpp
@ -312,8 +312,18 @@ namespace solv {
|
|||||||
return abs(h[0]) < solrange_xy && abs(h[1]) < solrange_xy && abs(h[2]) < solrange_z;
|
return abs(h[0]) < solrange_xy && abs(h[1]) < solrange_xy && abs(h[2]) < solrange_z;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void fixmatrix(transmatrix& T) {
|
||||||
|
transmatrix push = eupush( tC0(T) );
|
||||||
|
transmatrix push_back = inverse(push);
|
||||||
|
transmatrix gtl = push_back * T;
|
||||||
|
{ dynamicval<eGeometry> g(geometry, gSphere); hr::fixmatrix(gtl); }
|
||||||
|
T = push * gtl;
|
||||||
|
}
|
||||||
|
|
||||||
transmatrix spt(transmatrix Pos, transmatrix T) {
|
transmatrix spt(transmatrix Pos, transmatrix T) {
|
||||||
|
|
||||||
|
solv::fixmatrix(Pos);
|
||||||
|
|
||||||
hyperpoint h = tC0(T);
|
hyperpoint h = tC0(T);
|
||||||
h[3] = 0;
|
h[3] = 0;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user