Terraria
v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
◆
Distance()
[1/2]
static void Microsoft.Xna.Framework.Vector3.Distance
(
ref
Vector3
value1
,
ref
Vector3
value2
,
out float
result
)
inline
static
Definition at line
140
of file
Vector3.cs
.
141
{
142
float
num = value1.X - value2.X;
143
float
num2 = value1.Y - value2.Y;
144
float
num3 = value1.Z - value2.Z;
145
float
num4 = num * num + num2 * num2 + num3 * num3;
146
result = (float)
Math
.
Sqrt
(num4);
147
}
System.Math.Sqrt
static double Sqrt(double d)
System.Math
Definition
Math.cs:13
References
System.Math.Sqrt()
.
Microsoft
Xna
Framework
Vector3
Generated by
1.10.0