Vector3.DistanceSquared Method (Microsoft.Xna.Framework)
Returns the squared distance between two vectors.
- C#
- VB
- F#
public static void DistanceSquared( Vector3 value1, Vector3 value2, out Single result )
Syntax for VB is not yet implemented.
Syntax for F# is not yet implemented.
Parameters
- value1
-
Type: Microsoft.Xna.Framework.Vector3
The first vector.
- value2
-
Type: Microsoft.Xna.Framework.Vector3
The second vector.
- result
-
Type: out System.Single
The squared distance between two vectors as an output parameter.
Supported in:
Windows DirectX Desktop
Linux Desktop
Windows OpenGL Desktop
Web
Windows DirectX Desktop
Linux Desktop
Windows OpenGL Desktop
Web