Vector3.MaxMagnitudeNumber(Vector3, Vector3) 方法

定义

将两个向量(基于每个元素)与计算进行比较,如果输入 NaN,则计算其数量级更大并返回另一个值。

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

参数

value1
Vector3
value2
Vector3

返回

如果相应元素的量级大于 right,则其来自 left;否则,right

适用于