IGxPointF.Equals

Syntax

Equals(Point: IGxPointF): Boolean;

Parameters

Point. The point, with which the comparison is made.

Description

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

Example

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

IGxPointF