EPUB | CHM | PDF

TPSQLCircleField

Top Previous Next

TPSQLCircleField encapsulates built-in PostgreSQL circle type.

type
  TPSQLCircle = packed record
    R: Double;
    class operator Equal(C1: TPSQLCircle; C2: TPSQLCircle): Boolean;
    case Integer of
      0: (X, Y: Double);
      1: (Center: TPSQLPoint);
  end;
 
  TPSQLCircleField = class(TNumericField)
    property Value: TPSQLCircle read GetAsCircle write SetAsCircle;
  end;

Description:

Values are specified by Value property, where X and Y fields are the respective floating-point coordinates of the center,  and R is the radius.