Skip to content

Commit

Permalink
Explicitly call std library sqrt function
Browse files Browse the repository at this point in the history
  • Loading branch information
LSchwiebert committed Oct 28, 2024
1 parent 21f20ce commit 8f05a7f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/BasicTypes.h
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ class XYZ {
}

double LengthSq() const { return x * x + y * y + z * z; }
double Length() const { return sqrt(LengthSq()); }
double Length() const { return std::sqrt(LengthSq()); }

XYZ &Normalize() {
*this *= (1.0 / Length());
Expand Down

0 comments on commit 8f05a7f

Please sign in to comment.