Terraria
v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
◆
Clamp()
[13/13]
static ushort System.Math.Clamp
(
ushort
value
,
ushort
min
,
ushort
max
)
inline
static
Definition at line
599
of file
Math.cs
.
600
{
601
if
(min > max)
602
{
603
ThrowMinMaxException(min, max);
604
}
605
if
(
value
< min)
606
{
607
return
min;
608
}
609
if
(
value
> max)
610
{
611
return
max;
612
}
613
return
value
;
614
}
System.ExceptionArgument.value
@ value
References
System.value
.
System
Math
Generated by
1.10.0