Terraria
v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
◆
Normalize()
[3/3]
static
Vector3
Microsoft.Xna.Framework.Vector3.Normalize
(
Vector3
value
)
inline
static
Definition at line
184
of file
Vector3.cs
.
185
{
186
float
num = value.X * value.X + value.Y * value.Y + value.Z *
value
.Z;
187
float
num2 = 1f / (float)
Math
.
Sqrt
(num);
188
Vector3
result =
default
(
Vector3
);
189
result.X = value.X * num2;
190
result.Y = value.Y * num2;
191
result.Z = value.Z * num2;
192
return
result;
193
}
System.Math.Sqrt
static double Sqrt(double d)
System.Math
Definition
Math.cs:13
System.ExceptionArgument.value
@ value
Microsoft.Xna.Framework.Vector3.Vector3
Vector3(float x, float y, float z)
Definition
Vector3.cs:66
References
System.Math.Sqrt()
, and
System.value
.
Microsoft
Xna
Framework
Vector3
Generated by
1.10.0