# Quaternion.Equals 方法

## 重载

 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)

``````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

Boolean

### 注解

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)

``````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

Boolean

### 注解

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)

``````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

quaternion2
Quaternion

Boolean

### 注解

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.