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

moved zpush from 3dmodels to hyperpoint

This commit is contained in:
Zeno Rogue
2019-07-23 15:06:03 +02:00
parent 856e1147a1
commit 946570da31
11 changed files with 158 additions and 13 deletions

View File

@@ -342,6 +342,8 @@ hyperpoint orthogonal_move(const hyperpoint& h, ld z) {
// push alpha units vertically
transmatrix ypush(ld alpha) { return cpush(1, alpha); }
transmatrix zpush(ld z) { return cpush(2, z); }
transmatrix matrix3(ld a, ld b, ld c, ld d, ld e, ld f, ld g, ld h, ld i) {
#if MAXMDIM==3
return transmatrix {{{a,b,c},{d,e,f},{g,h,i}}};