26 lines
354 B
C
26 lines
354 B
C
/* SPDX-License-Identifier: GPL-2.0-or-later */
|
|
|
|
#pragma once
|
|
|
|
/** \file
|
|
* \ingroup bli
|
|
*/
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
typedef struct Range2f {
|
|
float min;
|
|
float max;
|
|
} Range2f;
|
|
|
|
BLI_INLINE bool range2f_in_range(const Range2f *range, const float value)
|
|
{
|
|
return IN_RANGE(value, range->min, range->max);
|
|
}
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|