Terraria
v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
◆
Clamp()
[1/2]
static void Microsoft.Xna.Framework.Vector2.Clamp
(
ref
Vector2
value1
,
ref
Vector2
min
,
ref
Vector2
max
,
out
Vector2
result
)
inline
static
Definition at line
215
of file
Vector2.cs
.
216
{
217
float
x = value1.X;
218
x = ((x > max.X) ? max.X : x);
219
x = ((x < min.X) ? min.X : x);
220
float
y = value1.Y;
221
y = ((y > max.Y) ? max.Y : y);
222
y = ((y < min.Y) ? min.Y : y);
223
result.X = x;
224
result.Y = y;
225
}
Microsoft
Xna
Framework
Vector2
Generated by
1.10.0