mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-08-30 09:17:57 +00:00
parabolic1 generates a straight line in Euclidean
This commit is contained in:
@@ -320,7 +320,10 @@ transmatrix ypush(ld alpha) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
transmatrix parabolic1(ld u) {
|
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}}};
|
if(euclid)
|
||||||
|
return ypush(u);
|
||||||
|
else
|
||||||
|
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
|
// rotate the hyperbolic plane around C0 such that H[1] == 0 and H[0] >= 0
|
||||||
|
Reference in New Issue
Block a user