Quaternion.Equals 方法

定义

比较两个 Quaternion 实例是否相等。Compares two Quaternion instances for equality.

重载

Equals(Object)

比较两个 Quaternion 实例是否相等。Compares two Quaternion instances for equality.

Equals(Quaternion)

比较两个 Quaternion 实例是否相等。Compares two Quaternion instances for equality.

Equals(Quaternion, Quaternion)

比较两个 Quaternion 实例是否相等。Compares two Quaternion instances for equality.

Equals(Object)

比较两个 Quaternion 实例是否相等。Compares two Quaternion instances for equality.

public:
 override bool Equals(System::Object ^ o);
public override bool Equals (object o);
override this.Equals : obj -> bool
Public Overrides Function Equals (o As Object) As Boolean

参数

o
Object

要与其进行比较的对象。Object with which to compare.

返回

如果两个 Quaternion 实例完全相等,则为 true;否则为 falsetrue if the two Quaternion instances are exactly equal, false otherwise.

注解

使用 Double 值描述 Quaternion 组件。Quaternion components are described using Double values. 由于 Double 的值在运算时可能会丢失精度,因此两个逻辑上相等的 Quaternion 值之间的比较可能会失败。Because the value of a Double can lose precision when operated upon, a comparison between two Quaternion values that are logically equal might fail.

Equals(Quaternion)

比较两个 Quaternion 实例是否相等。Compares two Quaternion instances for equality.

public:
 bool Equals(System::Windows::Media::Media3D::Quaternion value);
public bool Equals (System.Windows.Media.Media3D.Quaternion value);
override this.Equals : System.Windows.Media.Media3D.Quaternion -> bool
Public Function Equals (value As Quaternion) As Boolean

参数

value
Quaternion

要与其比较的四元数。Quaternion with which to compare.

返回

如果两个 Quaternion 实例完全相等,则为 true;否则为 falsetrue if the two Quaternion instances are exactly equal, false otherwise.

注解

使用 Double 值描述 Quaternion 组件。Quaternion components are described using Double values. 由于 Double 的值在运算时可能会丢失精度,因此两个逻辑上相等的 Quaternion 值之间的比较可能会失败。Because the value of a Double can lose precision when operated upon, a comparison between two Quaternion values that are logically equal might fail.

Equals(Quaternion, Quaternion)

比较两个 Quaternion 实例是否相等。Compares two Quaternion instances for equality.

public:
 static bool Equals(System::Windows::Media::Media3D::Quaternion quaternion1, System::Windows::Media::Media3D::Quaternion quaternion2);
public static bool Equals (System.Windows.Media.Media3D.Quaternion quaternion1, System.Windows.Media.Media3D.Quaternion quaternion2);
static member Equals : System.Windows.Media.Media3D.Quaternion * System.Windows.Media.Media3D.Quaternion -> bool
Public Shared Function Equals (quaternion1 As Quaternion, quaternion2 As Quaternion) As Boolean

参数

quaternion1
Quaternion

要比较的第一个 QuaternionFirst Quaternion to compare.

quaternion2
Quaternion

要比较的第二个 QuaternionSecond Quaternion to compare.

返回

如果两个 Quaternion 实例完全相等,则为 true;否则为 falsetrue if the two Quaternion instances are exactly equal, false otherwise.

注解

使用 Double 值描述 Quaternion 组件。Quaternion components are described using Double values. 由于 Double 的值在运算时可能会丢失精度,因此两个逻辑上相等的 Quaternion 值之间的比较可能会失败。Because the value of a Double can lose precision when operated upon, a comparison between two Quaternion values that are logically equal might fail.

适用于