Quaternion.Equals 方法

定义

返回一个值,该值指示此实例是否与指定 Quaternion 实例或指定对象相等。Returns a value that indicates whether this instance and a specified Quaternion instance or a specified object are equal.

重载

Equals(Quaternion)

返回一个值,该值指示此实例是否与另一个四元数相等。Returns a value that indicates whether this instance and another quaternion are equal.

Equals(Object)

返回一个值,该值指示此实例是否与指定对象相等。Returns a value that indicates whether this instance and a specified object are equal.

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

另一个四元数。The other quaternion.

返回

Boolean

如果两个四元数相等,则为 true;否则为 falsetrue if the two quaternions are equal; otherwise, false.

实现

注解

如果两个四元数的对应分量相等,则这两个四元数相等。Two quaternions are equal if each of their corresponding components is equal.

适用于

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);
public override bool Equals (object? obj);
override this.Equals : obj -> bool
Public Overrides Function Equals (obj As Object) As Boolean

参数

obj
Object

要与当前实例进行比较的对象。The object to compare with the current instance.

返回

Boolean

如果当前实例与 obj 相等,则为 true;否则为 falsetrue if the current instance and obj are equal; otherwise, false. 如果 objnull,则此方法返回 falseIf obj is null, the method returns false.

注解

obj如果 obj 是一个 Quaternion 对象,并且每个矩阵的相应组件相等,则当前实例和相等。The current instance and obj are equal if obj is a Quaternion object and the corresponding components of each matrix are equal.

适用于