Click or drag to resize

UtilDistance Method (Vector2, Vector2)

The distance between the two supplied points.

Namespace:  Demo3D.Common
Assembly:  Demo3D.Common (in Demo3D.Common.dll) Version: 15.0.2.11458
Syntax
C#
public static double Distance(
	Vector2 a,
	Vector2 b
)

Parameters

a
Type: Microsoft.DirectXVector2
The first point.
b
Type: Microsoft.DirectXVector2
The second point.

Return Value

Type: Double
The distance between the two points.
See Also