2022-02-11 09:07:11 +11:00
|
|
|
/* SPDX-License-Identifier: GPL-2.0-or-later */
|
2021-08-03 08:10:07 +02:00
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
|
|
/** \file
|
|
|
|
|
* \ingroup bli
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
|
extern "C" {
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
typedef struct Range2f {
|
|
|
|
|
float min;
|
|
|
|
|
float max;
|
|
|
|
|
} Range2f;
|
|
|
|
|
|
2021-08-06 09:46:36 +02:00
|
|
|
BLI_INLINE bool range2f_in_range(const Range2f *range, const float value)
|
|
|
|
|
{
|
|
|
|
|
return IN_RANGE(value, range->min, range->max);
|
|
|
|
|
}
|
|
|
|
|
|
2021-08-03 08:10:07 +02:00
|
|
|
#ifdef __cplusplus
|
|
|
|
|
}
|
|
|
|
|
#endif
|