1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2026-01-07 12:19:03 +00:00

Archimedean precise analyzer

This commit is contained in:
Zeno Rogue
2019-08-27 18:59:26 +02:00
parent 142566a5bd
commit f6f37b1e45
3 changed files with 39 additions and 7 deletions

View File

@@ -576,12 +576,8 @@ void geometry_information::prepare_basics() {
steps = 0;
single_step = 1;
if(hybri && !prod) {
if(hybrid::underlying == gArchimedean) {
ld s = arcm::current.euclidean_angle_sum - 2;
single_step = 2;
DEBB(DF_GEOM | DF_POLY, ("1/s = ", 1/s));
steps = 4/abs(s) + .5;
}
if(hybrid::underlying == gArchimedean)
arcm::current.get_step_values(steps, single_step);
else {
single_step = S3 * S7 - 2 * S7 - 2 * S3;
steps = 2 * S7;