Point.Equals(Object) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Returns true
if the X and Y values of this are exactly equal to those in the argument.
public override bool Equals (object o);
override this.Equals : obj -> bool
Parameters
- o
- System.Object
Another Point.
Returns
true
if the X and Y values are equal to those in o
. Returns false
if o
is not a Point.
Remarks
The X and Y values of the Point are stored as double
s. Developers should be aware of the precision limits and issues that can arise when comparing floating-point values. In some circumstances, developers should consider the possibility of measuring approximate equality using the (considerably slower) Distance(Point) method.