Terraria
v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
◆
Clamp()
[12/13]
static ulong System.Math.Clamp
(
ulong
value
,
ulong
min
,
ulong
max
)
inline
static
Definition at line
637
of file
Math.cs
.
638
{
639
if
(min > max)
640
{
641
ThrowMinMaxException(min, max);
642
}
643
if
(
value
< min)
644
{
645
return
min;
646
}
647
if
(
value
> max)
648
{
649
return
max;
650
}
651
return
value
;
652
}
System.ExceptionArgument.value
@ value
References
System.value
.
System
Math
Generated by
1.10.0