Číst v angličtině

Sdílet prostřednictvím


Vector4.DistanceSquared(Vector4, Vector4) Metoda

Definice

Vrátí euklidovské vzdálenosti mezi dvěma zadanými body.

public:
 static float DistanceSquared(System::Numerics::Vector4 value1, System::Numerics::Vector4 value2);
public static float DistanceSquared(System.Numerics.Vector4 value1, System.Numerics.Vector4 value2);
static member DistanceSquared : System.Numerics.Vector4 * System.Numerics.Vector4 -> single
Public Shared Function DistanceSquared (value1 As Vector4, value2 As Vector4) As Single

Parametry

value1
Vector4

První bod.

value2
Vector4

Druhý bod.

Návraty

Vzdálenost je na druhou mocninu.

Platí pro

Produkt Verze
.NET Core 1.0, Core 1.1, Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8, 9, 10
.NET Framework 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
.NET Standard 2.0 (package-provided), 2.1
UWP 10.0