* Check if the parameter "check" is inside the interval between * begin and end, including both begin and end. * @note Whether \c begin or \c end is the biggest does not matter. * This method will account for that. * @param begin The begin of the interval. * @param end The end of the interval. * @param check The value to check. */
| 787 | * @param check The value to check. |
| 788 | */ |
| 789 | static bool IsInRangeInclusive(int begin, int end, int check) |
| 790 | { |
| 791 | if (begin > end) std::swap(begin, end); |
| 792 | return begin <= check && check <= end; |
| 793 | } |
| 794 | |
| 795 | /** |
| 796 | * Checks whether a point is inside the selected a diagonal rectangle given by _thd.size and _thd.pos |
no test coverage detected