Terraria
v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
◆
Clamp()
[5/13]
static int System.Math.Clamp
(
int
value
,
int
min
,
int
max
)
inline
static
Definition at line
507
of file
Math.cs
.
508
{
509
if
(min > max)
510
{
511
ThrowMinMaxException(min, max);
512
}
513
if
(
value
< min)
514
{
515
return
min;
516
}
517
if
(
value
> max)
518
{
519
return
max;
520
}
521
return
value
;
522
}
System.ExceptionArgument.value
@ value
References
System.value
.
System
Math
Generated by
1.10.0