Vector2.Distance Method (Vector2%, Vector2%, Single%)
Calculates the distance between two vectors.
Namespace: Microsoft.Xna.Framework
Assembly: Microsoft.Xna.Framework.Math (in Microsoft.Xna.Framework.Math.dll)
'Declaration Public Shared Sub Distance ( _ ByRef value1 As Vector2, _ ByRef value2 As Vector2, _ <OutAttribute> ByRef result As Single _ )
Parameters
- value1
- Type: Microsoft.Xna.Framework.Vector2%
Source vector.
- value2
- Type: Microsoft.Xna.Framework.Vector2%
Source vector.
- result
- Type: System.Single%
[OutAttribute] The distance between the vectors.
For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.