Blender
V4.3
source
blender
blenlib
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
12
extern
"C"
{
13
#endif
14
15
typedef
struct
Range2f
{
16
float
min
;
17
float
max
;
18
}
Range2f
;
19
20
BLI_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
BLI_INLINE
#define BLI_INLINE
Definition
BLI_compiler_compat.h:37
range2f_in_range
BLI_INLINE bool range2f_in_range(const Range2f *range, const float value)
Definition
BLI_range.h:20
Range2f
struct Range2f Range2f
IN_RANGE
#define IN_RANGE(a, b, c)
Definition
BLI_utildefines.h:165
Range2f
Definition
BLI_range.h:15
Range2f::min
float min
Definition
BLI_range.h:16
Range2f::max
float max
Definition
BLI_range.h:17
Generated on Thu Feb 6 2025 07:36:39 for Blender by
doxygen
1.11.0