Quaternion.Equals Method (Quaternion, Quaternion)


Compares two Quaternion instances for equality.

Namespace:   System.Windows.Media.Media3D
Assembly:  PresentationCore (in PresentationCore.dll)

public static bool Equals(
	Quaternion quaternion1,
	Quaternion quaternion2


Type: System.Windows.Media.Media3D.Quaternion

First Quaternion to compare.

Type: System.Windows.Media.Media3D.Quaternion

Second Quaternion to compare.

Return Value

Type: System.Boolean

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

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.

.NET Framework
Available since 3.0
Return to top