Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

Point4D.Equals Method (Object)

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 override bool Equals (
	Object o
)
public boolean Equals (
	Object o
)
public override function Equals (
	o : Object
) : boolean
You cannot use methods in XAML.

Parameters

o

The Object to compare.

Return Value

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 the value of Doubles can lose precision when arithmetic operations are performed on them, a comparison between two Doubles that are logically equal might fail.

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

// Compares an Object and a Point4D for equality using the non-static Equals method.

Point4D point1 = new Point4D(10, 5, 1, 4);
Point4D point2 = new Point4D(15, 40, 60, 75);
Boolean areEqual;

areEqual = point1.Equals(point2);
// areEqual is False.  point2 is a Point4D structure, but it is not equal to point1.    


// Displaying Results
syntaxString = "areEqual = point1.Equals(point2);";
resultType = "Boolean";
operationString = "Checking if two 3D points are equal";
ShowResults(areEqual.ToString(), syntaxString, resultType, operationString);

Windows 98, Windows Server 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

Show:
© 2014 Microsoft