1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-09-27 13:48:15 +00:00

model orientation supported in Joukowsky

This commit is contained in:
Zeno Rogue 2018-10-25 03:17:42 +02:00
parent 2b79e9d0c7
commit 23b59101ae
2 changed files with 3 additions and 1 deletions

View File

@ -599,7 +599,7 @@ namespace conformal {
bool model_has_orientation() {
return
among(pmodel, mdHalfplane, mdPolynomial, mdPolygonal, mdTwoPoint) || mdBandAny();
among(pmodel, mdHalfplane, mdPolynomial, mdPolygonal, mdTwoPoint, mdJoukowsky, mdJoukowskyInverted) || mdBandAny();
}
void model_menu() {

View File

@ -410,6 +410,7 @@ void applymodel(hyperpoint H, hyperpoint& ret) {
ld x0, y0;
x0 = H[0] / tz;
y0 = H[1] / tz;
conformal::apply_orientation(x0, y0);
ld r = hypot(x0, y0);
ld c = x0 / r;
ld s = y0 / r;
@ -421,6 +422,7 @@ void applymodel(hyperpoint H, hyperpoint& ret) {
ret[0] = ret[0] / r2;
ret[1] = -ret[1] / r2;
}
conformal::apply_orientation(ret[1], ret[0]);
ghcheck(ret,H);
return;
}