Skip to content

Commit

Permalink
std::max
Browse files Browse the repository at this point in the history
  • Loading branch information
afabri committed Jan 13, 2025
1 parent 33a570e commit 473d1d1
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2245,8 +2245,8 @@ struct Geodesic_circle_impl

double cos_alpha = ba_norm * bd_norm;
double cos_beta = bc_norm * bd_norm;
double sin_alpha = sqrt(std::max(0.0, 1 - cos_alpha * cos_alpha));
double sin_beta = sqrt(std::max(0.0, 1 - cos_beta * cos_beta));
double sin_alpha = sqrt((std::max)(0.0, 1 - cos_alpha * cos_alpha));
double sin_beta = sqrt((std::max)(0.0, 1 - cos_beta * cos_beta));


// cos(alpha + beta)
Expand Down

0 comments on commit 473d1d1

Please sign in to comment.