Terraria
v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
◆
Normalize()
[2/3]
static void Microsoft.Xna.Framework.Vector2.Normalize
(
ref
Vector2
value
,
out
Vector2
result
)
inline
static
Definition at line
149
of file
Vector2.cs
.
150
{
151
float
num = value.X * value.X + value.Y *
value
.Y;
152
float
num2 = 1f / (float)
Math
.
Sqrt
(num);
153
result.X = value.X * num2;
154
result.Y = value.Y * num2;
155
}
System.Math.Sqrt
static double Sqrt(double d)
System.Math
Definition
Math.cs:13
System.ExceptionArgument.value
@ value
References
System.Math.Sqrt()
, and
System.value
.
Microsoft
Xna
Framework
Vector2
Generated by
1.10.0