Blender
V3.3
source
blender
blenlib
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
;
16
}
Range2f
;
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
BLI_INLINE
#define BLI_INLINE
Definition:
BLI_compiler_compat.h:36
range2f_in_range
BLI_INLINE bool range2f_in_range(const Range2f *range, const float value)
Definition:
BLI_range.h:18
Range2f
struct Range2f Range2f
IN_RANGE
#define IN_RANGE(a, b, c)
Definition:
BLI_utildefines.h:310
Range2f
Definition:
BLI_range.h:13
Range2f::min
float min
Definition:
BLI_range.h:14
Range2f::max
float max
Definition:
BLI_range.h:15
Generated on Sat Jul 27 2024 14:57:55 for Blender by
doxygen
1.9.1