Terraria
v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
◆
Clamp()
[6/13]
static long System.Math.Clamp
(
long
value
,
long
min
,
long
max
)
inline
static
Definition at line
525
of file
Math.cs
.
526
{
527
if
(min > max)
528
{
529
ThrowMinMaxException(min, max);
530
}
531
if
(
value
< min)
532
{
533
return
min;
534
}
535
if
(
value
> max)
536
{
537
return
max;
538
}
539
return
value
;
540
}
System.ExceptionArgument.value
@ value
References
System.value
.
System
Math
Generated by
1.10.0