Equals(Point: IGxPoint): Booelan;
Point. The point used for comparison.
The Equals method verifies the equality of this point with the point passed by the input parameter.
The method returns True if point coordinates match, and False if at least one coordinate is different.
Sub UserProc;
Var
p1, p2: IGxPoint;
Begin
p1 := New GxPoint.Create(Math.RandBetweenI(0, 2), Math.RandBetweenI(0, 2));
p2 := New GxPoint.Create(Math.RandBetweenI(0, 2), Math.RandBetweenI(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: