Terraria
v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
◆
Distance()
[1/2]
static void Microsoft.Xna.Framework.Vector2.Distance
(
ref
Vector2
value1
,
ref
Vector2
value2
,
out float
result
)
inline
static
Definition at line
99
of file
Vector2.cs
.
100
{
101
float
num = value1.X - value2.X;
102
float
num2 = value1.Y - value2.Y;
103
float
num3 = num * num + num2 * num2;
104
result = (float)
Math
.
Sqrt
(num3);
105
}
System.Math.Sqrt
static double Sqrt(double d)
System.Math
Definition
Math.cs:13
References
System.Math.Sqrt()
.
Microsoft
Xna
Framework
Vector2
Generated by
1.10.0