Internal helper: true when two floats are within RAYLIB_ASSERT_EPSILON of each other.
| 97 | |
| 98 | // Internal helper: true when two floats are within RAYLIB_ASSERT_EPSILON of each other. |
| 99 | static inline bool RaylibAssertFloatEq(float a, float b) |
| 100 | { |
| 101 | float delta = a - b; |
| 102 | if (delta < 0.0f) delta = -delta; |
| 103 | return delta <= RAYLIB_ASSERT_EPSILON; |
| 104 | } |
| 105 | |
| 106 | // Internal helper: true when two color channels differ by no more than the given tolerance. |
| 107 | static inline bool RaylibAssertChannelWithin(int a, int b, int tolerance) |
nothing calls this directly
no outgoing calls
no test coverage detected