mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-02-05 13:40:10 +00:00
models:: fix to halfplane
This commit is contained in:
parent
6806a0e7e3
commit
b98ac1c487
@ -762,8 +762,8 @@ EX void apply_other_model(shiftpoint H_orig, hyperpoint& ret, eModel md) {
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* it was inverted, so we apply scr_to_ori again */
|
||||||
models::scr_to_ori(H);
|
models::scr_to_ori(H);
|
||||||
|
|
||||||
H *= pconf.halfplane_scale;
|
H *= pconf.halfplane_scale;
|
||||||
auto ocos = pconf.mori().get()[0][0];
|
auto ocos = pconf.mori().get()[0][0];
|
||||||
auto osin = pconf.mori().get()[1][0];
|
auto osin = pconf.mori().get()[1][0];
|
||||||
@ -2800,7 +2800,7 @@ EX void draw_boundary(int w) {
|
|||||||
|
|
||||||
case mdHalfplane:
|
case mdHalfplane:
|
||||||
if(hyperbolic && GDIM == 2) {
|
if(hyperbolic && GDIM == 2) {
|
||||||
transmatrix Ori = rot_inverse(pconf.mori().get());
|
transmatrix Ori = pconf.mori().get();
|
||||||
queuestraight(Ori * spin270() * xpush0(fakeinf), 1, lc, fc, p);
|
queuestraight(Ori * spin270() * xpush0(fakeinf), 1, lc, fc, p);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user