Windows apps
Collapse the table of content
Expand the table of content

Vector3::Distance Method

Computes the Euclidean distance between the two given points.

Namespace:  System.Numerics
Assembly:  System.Numerics.Vectors (in System.Numerics.Vectors.dll)

public:
static float Distance(
	Vector3 value1, 
	Vector3 value2
)

Parameters

value1
Type: System.Numerics::Vector3

The first point.

value2
Type: System.Numerics::Vector3

The second point.

Return Value

Type: System::Single
The distance.
Show:
© 2017 Microsoft