Click or drag to resize

UtilDistanceSq Method

The square of 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 DistanceSq(
	Vector3 a,
	Vector3 b
)

Parameters

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

Return Value

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