GxPoint.CreateFromPoint

Syntax

CreateFromPoint(Point: IGxPoint);

Parameters

Point. The point that is used to create a new point.

Description

The CreateFromPoint constructor creates a new point that is the copy of the point passed by the Point parameter.

Example

Function GetCopyPoint(SourcePoint: IGxPoint): IGxPoint;
Var
    DestinationPoint: IGxPoint;
Begin
    DestinationPoint := New GxPoint.CreateFromPoint(SourcePoint);
    Return DestinationPoint;
End Function GetCopyPoint;

The function returns the copy of the point passed as an input parameter.

See also:

GxPoint