Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ Normalize() [2/3]

static void Microsoft.Xna.Framework.Vector3.Normalize ( ref Vector3 value,
out Vector3 result )
inlinestatic

Definition at line 195 of file Vector3.cs.

196 {
197 float num = value.X * value.X + value.Y * value.Y + value.Z * value.Z;
198 float num2 = 1f / (float)Math.Sqrt(num);
199 result.X = value.X * num2;
200 result.Y = value.Y * num2;
201 result.Z = value.Z * num2;
202 }
static double Sqrt(double d)

References System.Math.Sqrt(), and System.value.