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

Vector2::DistanceSquared Method

Returns the Euclidean distance squared between two specified points.

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

public:
static float DistanceSquared(
	Vector2 value1, 
	Vector2 value2
)

Parameters

value1
Type: System.Numerics::Vector2

The first point.

value2
Type: System.Numerics::Vector2

The second point.

Return Value

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