1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2025-12-19 04:18:06 +00:00

refactored the degree constant

This commit is contained in:
Zeno Rogue
2018-11-08 18:18:25 +01:00
parent 071e9a5cac
commit d1d2a300c4
12 changed files with 25 additions and 23 deletions

View File

@@ -170,7 +170,7 @@ void run_snub(int v, int w) {
hyperpoint f1 = facingdir(hts);
ld scalar = (f|f1);
ld alpha = (M_PI - acos(scalar)) * 180 / M_PI;
ld alpha = (M_PI - acos(scalar)) / degree;
sideangles.emplace_back(alpha, T);
}
}