1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2025-10-24 02:17:40 +00:00

nilrider:: two projection styles

This commit is contained in:
Zeno Rogue
2022-05-06 02:53:36 +02:00
parent 418eb072dc
commit 80ba9b4835
2 changed files with 36 additions and 2 deletions

View File

@@ -2,10 +2,14 @@ namespace nilrider {
ld timestamp::energy_in_squares() { return vel * vel / (2 * gravity); }
EX ld sym_to_heis_bonus(const hyperpoint& H) {
return H[0] * H[1] / 2;
}
/** convert rotationally symmetric to Heisenberg model */
EX hyperpoint sym_to_heis(hyperpoint H) {
if(nil) {
H[2] += H[0] * H[1] / 2;
H[2] += sym_to_heis_bonus(H);
}
return H;
}