Quaternion.Equality Operator (Quaternion, Quaternion)


The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Compares two Quaternion instances for exact equality.

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

public static bool operator ==(
	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