mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2024-12-18 15:00:26 +00:00
tanh used for better TwopointHybrid
This commit is contained in:
parent
7baf97521c
commit
4fb2440543
@ -1483,8 +1483,8 @@ void draw_model_elements() {
|
|||||||
queuereset(mdUnchanged, PPR::CIRCLE);
|
queuereset(mdUnchanged, PPR::CIRCLE);
|
||||||
|
|
||||||
for(int mode=0; mode<4; mode++) {
|
for(int mode=0; mode<4; mode++) {
|
||||||
for(int s=-199; s<=199; s += 2) {
|
for(int s=-200; s<=200; s ++) {
|
||||||
ld p = s / 200.;
|
ld p = tanh(s / 40.);
|
||||||
ld a = vid.twopoint_param * (1+p);
|
ld a = vid.twopoint_param * (1+p);
|
||||||
ld b = vid.twopoint_param * (1-p);
|
ld b = vid.twopoint_param * (1-p);
|
||||||
ld h = ((mode & 2) ? -1 : 1) * sqrt(asin_auto(tan_auto(a) * tan_auto(b)));
|
ld h = ((mode & 2) ? -1 : 1) * sqrt(asin_auto(tan_auto(a) * tan_auto(b)));
|
||||||
|
Loading…
Reference in New Issue
Block a user