Terraria
v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
◆
Clamp()
[7/13]
static nint System.Math.Clamp
(
nint
value
,
nint
min
,
nint
max
)
inline
static
Definition at line
543
of file
Math.cs
.
544
{
545
if
(min > max)
546
{
547
ThrowMinMaxException(min, max);
548
}
549
if
(
value
< min)
550
{
551
return
min;
552
}
553
if
(
value
> max)
554
{
555
return
max;
556
}
557
return
value
;
558
}
System.ExceptionArgument.value
@ value
References
System.value
.
System
Math
Generated by
1.10.0