Terraria
v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
◆
Clamp()
[3/13]
static double System.Math.Clamp
(
double
value
,
double
min
,
double
max
)
inline
static
Definition at line
471
of file
Math.cs
.
472
{
473
if
(min > max)
474
{
475
ThrowMinMaxException(min, max);
476
}
477
if
(
value
< min)
478
{
479
return
min;
480
}
481
if
(
value
> max)
482
{
483
return
max;
484
}
485
return
value
;
486
}
System.ExceptionArgument.value
@ value
References
System.value
.
System
Math
Generated by
1.10.0