1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2025-09-11 14:56:00 +00:00

tes:: preliminary implementation of (ultra)ideal vertices

This commit is contained in:
Zeno Rogue
2022-04-10 13:15:05 +02:00
parent 4122c1336c
commit be7e4ce70d
2 changed files with 135 additions and 13 deletions

View File

@@ -245,6 +245,16 @@ cld exp_parser::parse(int prio) {
res /= *distunit;
}
#endif
else if(eat("ideal_angle(")) {
ld edges = rparse(0);
force_eat(")");
return arb::rep_ideal(edges).second;
}
else if(eat("ideal_edge(")) {
ld edges = rparse(0);
force_eat(")");
return arb::rep_ideal(edges).first;
}
else if(eat("regangle(")) {
cld edgelen = parse(0);
if (auto *distunit = hr::at_or_null(extra_params, "distunit")) {