1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2025-09-09 22:06:01 +00:00

fixup to last

This commit is contained in:
Zeno Rogue
2024-07-15 13:26:00 +02:00
parent 0d85a6943f
commit 228bc345ed
2 changed files with 30 additions and 0 deletions

View File

@@ -174,6 +174,8 @@ inline shiftpoint shiftless(const hyperpoint& h, ld shift = 0) {
struct shiftmatrix {
transmatrix T;
ld shift;
shiftmatrix() {}
shiftmatrix(const transmatrix& _h, ld _shift) : T(_h), shift(_shift) {}
hyperpoint& operator [] (int i) { return T[i]; }
const hyperpoint& operator [] (int i) const { return T[i]; }
inline friend shiftpoint operator * (const shiftmatrix& T, const hyperpoint& h) {