mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2024-11-18 19:24:48 +00:00
fixed configure_product_cylinder
This commit is contained in:
parent
146c075210
commit
bab78c8179
@ -1496,8 +1496,8 @@ EX void switch_always3() {
|
||||
EX void configure_product_cylinder() {
|
||||
rug::clifford_torus ct;
|
||||
hyperpoint vec;
|
||||
if(sqhypot_d(2, ct.yh) < 1e-6) vec = ct.yh;
|
||||
else if(sqhypot_d(2, ct.xh) < 1e-6) vec = ct.xh;
|
||||
if(sqhypot_d(2, ct.yh) > 1e-6) vec = ct.yh;
|
||||
else if(sqhypot_d(2, ct.xh) > 1e-6) vec = ct.xh;
|
||||
else vec = hyperpoint(10, 0, 0, 0);
|
||||
|
||||
euclid_embed_scale = TAU / hypot_d(2, vec);
|
||||
|
Loading…
Reference in New Issue
Block a user