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); } ```
Activity
chalonverse commentedon Mar 12, 2022
Yes, that is a good point.
Chapter 1 mac