1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2025-11-11 19:23:01 +00:00

added some exports to hyper.h

This commit is contained in:
Zeno Rogue
2018-09-10 17:26:27 +02:00
parent 8999ceb59b
commit c9dbeec393
2 changed files with 36 additions and 21 deletions

View File

@@ -231,24 +231,6 @@ hyperpoint midz(const hyperpoint& H1, const hyperpoint& H2) {
// matrices represent isometries of the hyperbolic plane
// (just like isometries of the sphere are represented by rotation matrices)
// identity matrix
const transmatrix Id = {{{1,0,0}, {0,1,0}, {0,0,1}}};
// mirror image
const transmatrix Mirror = {{{1,0,0}, {0,-1,0}, {0,0,1}}};
// mirror image
const transmatrix MirrorX = {{{-1,0,0}, {0,1,0}, {0,0,1}}};
// mirror image
const transmatrix MirrorZ = {{{1,0,0}, {0,1,0}, {0,0,-1}}};
// rotate by PI
const transmatrix pispin = {{{-1,0,0}, {0,-1,0}, {0,0,1}}};
// central symmetry
const transmatrix centralsym = {{{-1,0,0}, {0,-1,0}, {0,0,-1}}};
// rotate by alpha degrees
transmatrix spin(ld alpha) {
transmatrix T = Id;