Terraria
v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
◆
Clamp()
[10/13]
static
short
System.Math.Clamp
(
short
value
,
short
min
,
short
max
)
inline
static
Definition at line
489
of file
Math.cs
.
490
{
491
if
(min > max)
492
{
493
ThrowMinMaxException(min, max);
494
}
495
if
(
value
< min)
496
{
497
return
min;
498
}
499
if
(
value
> max)
500
{
501
return
max;
502
}
503
return
value
;
504
}
System.ExceptionArgument.value
@ value
References
System.value
.
System
Math
Generated by
1.10.0