Skip to content

Commit

Permalink
public: fix Q_equal for case when applying epsilon doesn't change the…
Browse files Browse the repository at this point in the history
… value
  • Loading branch information
a1batross committed Jul 4, 2024
1 parent fcb463d commit eff86de
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion public/xash3d_mathlib.h
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ GNU General Public License for more details.

#define Q_min( a, b ) (((a) < (b)) ? (a) : (b))
#define Q_max( a, b ) (((a) > (b)) ? (a) : (b))
#define Q_equal_e( a, b, e ) (((a) > ((b) - (e))) && ((a) < ((b) + (e))))
#define Q_equal_e( a, b, e ) (((a) >= ((b) - (e))) && ((a) <= ((b) + (e))))
#define Q_equal( a, b ) Q_equal_e( a, b, EQUAL_EPSILON )
#define Q_recip( a ) ((float)(1.0f / (float)(a)))
#define Q_floor( a ) ((float)(int)(a))
Expand Down

0 comments on commit eff86de

Please sign in to comment.