mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-08-29 16:57:56 +00:00
fixed configure_product_cylinder
This commit is contained in:
@@ -1496,8 +1496,8 @@ EX void switch_always3() {
|
|||||||
EX void configure_product_cylinder() {
|
EX void configure_product_cylinder() {
|
||||||
rug::clifford_torus ct;
|
rug::clifford_torus ct;
|
||||||
hyperpoint vec;
|
hyperpoint vec;
|
||||||
if(sqhypot_d(2, ct.yh) < 1e-6) vec = ct.yh;
|
if(sqhypot_d(2, ct.yh) > 1e-6) vec = ct.yh;
|
||||||
else if(sqhypot_d(2, ct.xh) < 1e-6) vec = ct.xh;
|
else if(sqhypot_d(2, ct.xh) > 1e-6) vec = ct.xh;
|
||||||
else vec = hyperpoint(10, 0, 0, 0);
|
else vec = hyperpoint(10, 0, 0, 0);
|
||||||
|
|
||||||
euclid_embed_scale = TAU / hypot_d(2, vec);
|
euclid_embed_scale = TAU / hypot_d(2, vec);
|
||||||
|
Reference in New Issue
Block a user