fixed a bug in rel_log

This commit is contained in:
Zeno Rogue 2023-04-15 01:19:41 +02:00
parent 0c473559f3
commit f57157435e
1 changed files with 2 additions and 2 deletions

View File

@ -3316,8 +3316,8 @@ EX hyperpoint rel_log(shiftpoint h, bool relativistic_length) {
ld choice = h1[2] * h1[2] - h1[0] * h1[0] - h1[1] * h1[1];
ld r, z;
if(choice > 0) {
ld r = sqrt(choice);
ld z = asin_clamp(r);
r = sqrt(choice);
z = asin_clamp(r);
if(h1[3] < 0) z = M_PI - z;
z += cycles * TAU;
}