Equals(Point: IGxPointF): Boolean;
Point. The point, with which the comparison is made.
The Equals method verifies the equality of this point with the point passed by the input parameter.
Sub UserProc;
Var
p1, p2: IGxPointF;
Begin
p1 := New GxPointF.Create(Math.RandBetween(0, 2), Math.RandBetween(0, 2));
p2 := New GxPointF.Create(Math.RandBetween(0, 2), Math.RandBetween(0, 2));
Debug.WriteLine("X1: " + p1.X.ToString + ". Y1: " + p1.Y.ToString);
Debug.WriteLine("X2: " + p2.X.ToString + ". Y2: " + p2.Y.ToString);
Debug.WriteLine(p1.Equals(p2));
End Sub UserProc;
After executing the example two points are created. Point coordinates and comparison result will be displayed in the development environment console.
See also: