Terraria
v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
◆
Normalize()
[3/3]
static
Vector2
Microsoft.Xna.Framework.Vector2.Normalize
(
Vector2
value
)
inline
static
Definition at line
139
of file
Vector2.cs
.
140
{
141
float
num = value.X * value.X + value.Y *
value
.Y;
142
float
num2 = 1f / (float)
Math
.
Sqrt
(num);
143
Vector2
result =
default
(
Vector2
);
144
result.X = value.X * num2;
145
result.Y = value.Y * num2;
146
return
result;
147
}
System.Math.Sqrt
static double Sqrt(double d)
System.Math
Definition
Math.cs:13
System.ExceptionArgument.value
@ value
Microsoft.Xna.Framework.Vector2.Vector2
Vector2(float x, float y)
Definition
Vector2.cs:35
References
System.Math.Sqrt()
, and
System.value
.
Microsoft
Xna
Framework
Vector2
Generated by
1.10.0