GrapherApp.UI/Model/Vector3.cs
/// <summary>
///   <para>Returns the distance between a and b.</para>
/// </summary>
/// <param name="a"></param>
/// <param name="b"></param>
Returns the distance between a and b.
Returns the distance between a and b .
public static float Distance(Vector3 a, Vector3 b)
		{
			Vector3 vector = new Vector3(a.x - b.x, a.y - b.y, a.z - b.z);
			return (float)Math.Sqrt(vector.x * vector.x + vector.y * vector.y + vector.z * vector.z);
		}
public static float Distance ( Vector3 a , Vector3 b ) { Vector3 vector = new Vector3 ( a . x - b . x , a . y - b . y , a . z - b . z ) ; return ( float ) Math . Sqrt ( vector . x * vector . x + vector . y * vector . y + vector . z * vector . z ) ; }
Returns the distance between a and b.
Returns the distance between a and b .
a
Vector3
None
b
Vector3
None