mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-12-20 04:48:06 +00:00
refactored binarytiling::parabolic to parabolic1 in hyperpoint
This commit is contained in:
@@ -319,6 +319,10 @@ transmatrix ypush(ld alpha) {
|
||||
return T;
|
||||
}
|
||||
|
||||
transmatrix parabolic1(ld u) {
|
||||
return transmatrix {{{-u*u/2+1, u, u*u/2}, {-u, 1, u}, {-u*u/2, u, u*u/2+1}}};
|
||||
}
|
||||
|
||||
// rotate the hyperbolic plane around C0 such that H[1] == 0 and H[0] >= 0
|
||||
transmatrix spintox(const hyperpoint& H) {
|
||||
transmatrix T = Id;
|
||||
|
||||
Reference in New Issue
Block a user