MathHelper.Distance Method (Microsoft.Xna.Framework)
Calculates the absolute value of the difference of two values.
- C#
- VB
- F#
public static float Distance( float value1, float value2 )
Syntax for VB is not yet implemented.
Syntax for F# is not yet implemented.
Parameters
- value1
-
Type: System.Single
Source value.
- value2
-
Type: System.Single
Source value.
Return Value
Type: System.SingleDistance between the two values.
Supported in:
Windows DirectX Desktop
Linux Desktop
Windows OpenGL Desktop
Web
Windows DirectX Desktop
Linux Desktop
Windows OpenGL Desktop
Web