Quaternion.Equals Quaternion.Equals Quaternion.Equals Quaternion.Equals Method

定義

傳回值,這個值指出此執行個體和指定的 Quaternion 執行個體或指定的物件是否相等。Returns a value that indicates whether this instance and a specified Quaternion instance or a specified object are equal.

多載

Equals(Quaternion) Equals(Quaternion) Equals(Quaternion) Equals(Quaternion)

傳回值,這個值指出此執行個體和另一個四元數是否相等。Returns a value that indicates whether this instance and another quaternion are equal.

Equals(Object) Equals(Object) Equals(Object) Equals(Object)

傳回值,這個值指出此執行個體和指定的物件是否相等。Returns a value that indicates whether this instance and a specified object are equal.

Equals(Quaternion) Equals(Quaternion) Equals(Quaternion) Equals(Quaternion)

傳回值,這個值指出此執行個體和另一個四元數是否相等。Returns a value that indicates whether this instance and another quaternion are equal.

public:
 virtual bool Equals(System::Numerics::Quaternion other);
public bool Equals (System.Numerics.Quaternion other);
override this.Equals : System.Numerics.Quaternion -> bool
Public Function Equals (other As Quaternion) As Boolean

參數

other
Quaternion Quaternion Quaternion Quaternion

其他四元數。The other quaternion.

傳回

如果兩個四元數相等則為 true;否則為 falsetrue if the two quaternions are equal; otherwise, false.

實作

備註

如果兩個四元數的對應元件相等, 則兩者相等。Two quaternions are equal if each of their corresponding components is equal.

Equals(Object) Equals(Object) Equals(Object) Equals(Object)

傳回值,這個值指出此執行個體和指定的物件是否相等。Returns a value that indicates whether this instance and a specified object are equal.

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

參數

obj
Object Object Object Object

要與目前執行個體比較的物件。The object to compare with the current instance.

傳回

如果目前的執行個體和 obj 相等則為 true;否則為 falsetrue if the current instance and obj are equal; otherwise, false. 如果 objnull,則方法會傳回 falseIf obj is null, the method returns false.

備註

如果obj obj是物件,而且每個矩陣的對應元件相等,則目前的實例和相等。QuaternionThe current instance and obj are equal if obj is a Quaternion object and the corresponding components of each matrix are equal.

適用於