Vector4.Distance Method (Vector4, Vector4)
Calculates the distance between two vectors.
Syntax
'Declaration
Public Shared Function Distance ( _
value1 As Vector4, _
value2 As Vector4 _
) As Single
public static float Distance (
Vector4 value1,
Vector4 value2
)
public:
static float Distance(
Vector4 value1,
Vector4 value2
)
Parameters
Return Value
Type: Single
Distance between the source vectors.
Requirements
Namespace: Microsoft.Xna.Framework
Assembly: Microsoft.Xna.Framework (in microsoft.xna.framework.dll)
See Also
Reference
Vector4 Structure
Vector4 Members
Microsoft.Xna.Framework Namespace
Platforms
Windows Phone