Bearbeiten

Freigeben über


Quaternion.Equals Method

Definition

Compares two Quaternion instances for equality.

Overloads

Equals(Object)

Compares two Quaternion instances for equality.

Equals(Quaternion)

Compares two Quaternion instances for equality.

Equals(Quaternion, Quaternion)

Compares two Quaternion instances for equality.

Equals(Object)

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

Parameters

o
Object

Object with which to compare.

Returns

true if the two Quaternion instances are exactly equal, false otherwise.

Remarks

Quaternion components are described using Double values. Because the value of a Double can lose precision when operated upon, a comparison between two Quaternion values that are logically equal might fail.

Applies to

Equals(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

Parameters

value
Quaternion

Quaternion with which to compare.

Returns

true if the two Quaternion instances are exactly equal, false otherwise.

Remarks

Quaternion components are described using Double values. Because the value of a Double can lose precision when operated upon, a comparison between two Quaternion values that are logically equal might fail.

Applies to

Equals(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

Parameters

quaternion1
Quaternion

First Quaternion to compare.

quaternion2
Quaternion

Second Quaternion to compare.

Returns

true if the two Quaternion instances are exactly equal, false otherwise.

Remarks

Quaternion components are described using Double values. Because the value of a Double can lose precision when operated upon, a comparison between two Quaternion values that are logically equal might fail.

Applies to