mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-07-03 10:12:51 +00:00
minor fixes to hat parameter
This commit is contained in:
parent
defeaf2cc6
commit
44454c479a
@ -427,8 +427,8 @@ struct hrmap_hat : hrmap {
|
|||||||
eshort *= hat_param;
|
eshort *= hat_param;
|
||||||
elong *= 2 - hat_param;
|
elong *= 2 - hat_param;
|
||||||
// 0-length edges cause problems...
|
// 0-length edges cause problems...
|
||||||
if(eshort == 0) eshort = .0001;
|
if(abs(eshort) < 1e-6) eshort = .0001;
|
||||||
if(elong == 0) elong = .0001;
|
if(abs(elong) < 1e-6) elong = .0001;
|
||||||
}
|
}
|
||||||
|
|
||||||
ld i60 = (M_PI - TAU*2/q)/degree;
|
ld i60 = (M_PI - TAU*2/q)/degree;
|
||||||
|
@ -824,7 +824,7 @@ EX void initConfig() {
|
|||||||
param_custom(vid.binary_width, "binary tiling width", menuitem_binary_width, 'v');
|
param_custom(vid.binary_width, "binary tiling width", menuitem_binary_width, 'v');
|
||||||
|
|
||||||
param_f(hat::hat_param, "hat_param", "hat_param", 1)
|
param_f(hat::hat_param, "hat_param", "hat_param", 1)
|
||||||
-> editable(0, 2, 1, "Hat parameter",
|
-> editable(0, 2, 0.1, "hat parameter",
|
||||||
"Apeirodic hat tiling based on: https://arxiv.org/pdf/2303.10798.pdf\n\n"
|
"Apeirodic hat tiling based on: https://arxiv.org/pdf/2303.10798.pdf\n\n"
|
||||||
"This controls the parameter discussed in Section 6.", 'v'
|
"This controls the parameter discussed in Section 6.", 'v'
|
||||||
)
|
)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user