Skip to content
Member Filters
Show Inherited
Show Protected
Show abstract
GR32🞂TFixedPointType

TFixedPoint

2D point structure using 16.16 fixed-point coordinates.

Declaration ​

pascal
type
  TFixedPoint = record
    X, Y: TFixed;
  public
    constructor Create(const P: TFloatPoint); overload;
    constructor Create(X, Y: TFixed); overload;
    constructor Create(X, Y: Integer); overload;
    constructor Create(X, Y: TFloat); overload;

    class operator Equal(const Lhs, Rhs: TFixedPoint): Boolean;
    class operator NotEqual(const Lhs, Rhs: TFixedPoint): Boolean;
    class operator Add(const Lhs, Rhs: TFixedPoint): TFixedPoint;
    class operator Subtract(const Lhs, Rhs: TFixedPoint): TFixedPoint;

    class function Zero: TFixedPoint; static;
  end;

Description ​

TFixedPoint represents a 2D point using 16.16 fixed-point coordinates (TFixed).

Fields ​

FieldTypeDescription
XTFixedX-coordinate in 16.16 fixed-point format.
YTFixedY-coordinate in 16.16 fixed-point format.
TypeDeclarationDescription
PFixedPoint^TFixedPointPointer to a TFixedPoint record.
TFixedPointArrayarray [0..0] of TFixedPointStatic un-sized array type.
PFixedPointArray^TFixedPointArrayPointer to an un-sized array of fixed-point records.
TArrayOfFixedPointarray of TFixedPointDynamic array of 16.16 fixed-point records; A polyline/polygon.
TArrayOfArrayOfFixedPointarray of TArrayOfFixedPoint2D dynamic array of fixed-point records; A poly-polyline/poly-polygon;