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.

返回

Boolean

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

注解

Quaternion使用值描述组件 DoubleQuaternion 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.

返回

Boolean

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

注解

Quaternion使用值描述组件 DoubleQuaternion 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.

返回

Boolean

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

注解

Quaternion使用值描述组件 DoubleQuaternion 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.

适用于