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