parabolic1 generates a straight line in Euclidean

This commit is contained in:
Zeno Rogue 2018-12-04 23:06:24 +01:00
parent 285211bcf3
commit e244e3cff8
1 changed files with 4 additions and 1 deletions

View File

@ -320,7 +320,10 @@ transmatrix ypush(ld alpha) {
}
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