Terraria
v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
◆
Clamp()
[8/13]
static nuint System.Math.Clamp
(
nuint
value
,
nuint
min
,
nuint
max
)
inline
static
Definition at line
656
of file
Math.cs
.
657
{
658
if
(min > max)
659
{
660
ThrowMinMaxException(min, max);
661
}
662
if
(
value
< min)
663
{
664
return
min;
665
}
666
if
(
value
> max)
667
{
668
return
max;
669
}
670
return
value
;
671
}
System.ExceptionArgument.value
@ value
References
System.value
.
System
Math
Generated by
1.10.0