Terraria
v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
◆
Clamp()
[11/13]
static uint System.Math.Clamp
(
uint
value
,
uint
min
,
uint
max
)
inline
static
Definition at line
618
of file
Math.cs
.
619
{
620
if
(min > max)
621
{
622
ThrowMinMaxException(min, max);
623
}
624
if
(
value
< min)
625
{
626
return
min;
627
}
628
if
(
value
> max)
629
{
630
return
max;
631
}
632
return
value
;
633
}
System.ExceptionArgument.value
@ value
References
System.value
.
System
Math
Generated by
1.10.0