NW4F Sys
Loading...
Searching...
No Matches
ut_Inlines.h
Go to the documentation of this file.
1
#
ifndef
NW_UT_INLINES_H_
2
#
define
NW_UT_INLINES_H_
3
4
#
include
<
nw
/
types
.
h
>
5
6
namespace
nw
{
namespace
ut
{
7
8
template
<
typename
T>
9
NW_INLINE
T
10
Clamp
(T x, T low, T high)
11
{
12
return
x > high ? high : (x < low ? low : x);
13
}
14
15
} }
// namespace nw::ut
16
17
#
endif
// NW_UT_INLINES_H_
nw::ut
Definition
ut_CriticalSection.h:6
nw::ut::Clamp
NW_INLINE T Clamp(T x, T low, T high)
Definition
ut_Inlines.h:10
nw
Definition
math_Constant.cpp:5
NW_INLINE
#define NW_INLINE
Definition
types.h:14
include
nw
ut
ut_Inlines.h
Generated by
1.14.0