1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2025-10-31 14:02:59 +00:00

ringcolor improvements

This commit is contained in:
Zeno Rogue
2018-11-08 19:39:55 +01:00
parent d1d2a300c4
commit f1b6cc0f48
7 changed files with 141 additions and 94 deletions

View File

@@ -293,6 +293,14 @@ inline hyperpoint xpush0(ld x) {
return h;
}
inline hyperpoint ypush0(ld x) {
hyperpoint h;
if(euclid) return hpxy(x, 0);
else if(sphere) h[0] = 0, h[1] = sin(x), h[2] = cos(x);
else h[0] = 0, h[1] = sinh(x), h[2] = cosh(x);
return h;
}
inline hyperpoint xspinpush0(ld alpha, ld x) {
// return spin(alpha)*xpush0(x);
ld s;