Blender V4.3
BLI_range.h
Go to the documentation of this file.
1/* SPDX-FileCopyrightText: 2023 Blender Authors
2 *
3 * SPDX-License-Identifier: GPL-2.0-or-later */
4
5#pragma once
6
11#ifdef __cplusplus
12extern "C" {
13#endif
14
15typedef struct Range2f {
16 float min;
17 float max;
19
20BLI_INLINE bool range2f_in_range(const Range2f *range, const float value)
21{
22 return IN_RANGE(value, range->min, range->max);
23}
24
25#ifdef __cplusplus
26}
27#endif
#define BLI_INLINE
BLI_INLINE bool range2f_in_range(const Range2f *range, const float value)
Definition BLI_range.h:20
struct Range2f Range2f
#define IN_RANGE(a, b, c)
float min
Definition BLI_range.h:16
float max
Definition BLI_range.h:17