This repository has been archived on 2023-10-09. You can view files and clone it, but cannot push or open issues or pull requests.
Files
blender-archive/source/blender/blenlib/BLI_range.h

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

26 lines
354 B
C++
Raw Normal View History

/* 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