We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
In math library, the extra branching statement for NearZero function is redundant Original
inline bool NearZero(float val, float epsilon = 0.001f) { if (fabs(val) <= epsilon) { return true; } else { return false; } }
Suggested:
inline bool NearZero(float val, float epsilon = 0.001f) { return fabs(val) <= epsilon); }
The text was updated successfully, but these errors were encountered:
Yes, that is a good point.
Sorry, something went wrong.
Chapter 1 mac
fed429f
No branches or pull requests
In math library, the extra branching statement for NearZero function is redundant
Original
Suggested:
The text was updated successfully, but these errors were encountered: