Point4D::Equals Method (Object^)

 
System_CAPS_noteNote

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

Determines whether the specified Object is a Point4D structure and if the X, Y, Z, and W properties of the specified Object are equal to the X, Y, Z, and W properties of this Point4D structure.

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

public:
virtual bool Equals(
	Object^ o
) override

Parameters

o
Type: System::Object^

The object to compare.

Return Value

Type: System::Boolean

true if instances are equal; otherwise, false.

true if o (the passed Object) is a Point4D structure and is identical with this Point4D structure; false otherwise.

If o (the passed object) is not a Point4D structure, this method returns false.

Because a Double value can lose precision when arithmetic operations are performed on them, a comparison between two Point4D values that are logically equal might fail.

The following example shows how to check whether an Object and a Point4D structure are equal.

No code example is currently available or this language may not be supported.

.NET Framework
Available since 3.0
Return to top
Show: