IGxPoint.Equals

Syntax

Equals(Point: IGxPoint): Booelan;

Parameters

Point. The point used for comparison.

Description

The Equals method verifies the equality of this point with the point passed by the input parameter.

Comments

The method returns True if point coordinates match, and False if at least one coordinate is different.

Example

Sub UserProc;
Var
    p1, p2: IGxPoint;
Begin
    p1 := New GxPoint.Create(Math.RandBetweenI(02), Math.RandBetweenI(02));
    p2 := New GxPoint.Create(Math.RandBetweenI(02), Math.RandBetweenI(02));
    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:

IGxPoint