Поделиться через


Point.Equals(Object) Method

Definition

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

System.Boolean

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 doubles. 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.

Applies to