mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-09-07 04:47:56 +00:00
MAJOR CHANGE: replaced (transmatrix,band_shift) pair with shiftmatrix
This commit is contained in:
@@ -151,9 +151,11 @@ EX namespace dual {
|
||||
|
||||
EX transmatrix get_orientation() {
|
||||
if(WDIM == 2)
|
||||
return gpushxto0(tC0(cwtV)) * cwtV;
|
||||
else if(cwt.at)
|
||||
return gpushxto0(tC0(ggmatrix(cwt.at))) * ggmatrix(cwt.at) * sword::dir[0].T;
|
||||
return gpushxto0(tC0(cwtV.T)) * cwtV.T;
|
||||
else if(cwt.at) {
|
||||
transmatrix T = unshift(ggmatrix(cwt.at));
|
||||
return gpushxto0(tC0(T)) * T * sword::dir[0].T;
|
||||
}
|
||||
else
|
||||
return Id;
|
||||
}
|
||||
|
Reference in New Issue
Block a user