Vector3.DistanceSquared(Vector3, Vector3) 方法

定义

返回两个指定点之间的欧几里得距离平方值。

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

参数

value1
Vector3

第一个点。

value2
Vector3

第二个点。

返回

距离平方值。

适用于