mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-01-11 18:00:34 +00:00
arcm:: arcm_euclid_length parameter
This commit is contained in:
parent
2c074a7088
commit
fcf55f1852
@ -14,6 +14,8 @@ EX namespace arcm {
|
||||
|
||||
EX bool in() { return cgflags & qARCHI; }
|
||||
|
||||
EX ld euclidean_edge_length = .5;
|
||||
|
||||
#if HDR
|
||||
struct hr_archimedean_error : hr_exception {
|
||||
hr_archimedean_error(string _s) : hr_exception(_s) {}
|
||||
@ -399,7 +401,6 @@ void archimedean_tiling::compute_geometry() {
|
||||
inradius.resize(N+1); inradius[N] = 0;
|
||||
circumradius.resize(N+1); circumradius[N] = 0;
|
||||
alphas.resize(N);
|
||||
ld elmin = 0, elmax = hyperbolic ? 10 : sphere ? M_PI : 1;
|
||||
|
||||
ld total = M_PI;
|
||||
|
||||
@ -410,6 +411,8 @@ void archimedean_tiling::compute_geometry() {
|
||||
ginf[geometry].g = get_geometry(fake::around / N);
|
||||
}
|
||||
|
||||
ld elmin = 0, elmax = hyperbolic ? 10 : sphere ? M_PI : 2 * euclidean_edge_length;
|
||||
|
||||
/* inradius[N] is used in farcorner and nearcorner. Probably a bug */
|
||||
|
||||
if(real_faces == 2) {
|
||||
|
@ -927,6 +927,8 @@ EX void initConfig() {
|
||||
addsaver(slr::steps, "slr-steps");
|
||||
addsaver(slr::range_xy, "slr-range-xy");
|
||||
|
||||
param_f(arcm::euclidean_edge_length, "arcm-euclid-length");
|
||||
|
||||
#if CAP_ARCM
|
||||
addsaver(arcm::current.symbol, "arcm-symbol", "4^5");
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user