TPoint

From SCAR Divi Manual
Revision as of 13:14, 3 July 2011 by Freddy (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Definition

TPoint = packed record
  X, Y: Integer;
end;

Availability

SCAR Divi 3.00 > Current

Description

A structured type which holds a 2-dimensional coordinate specified by the integer X and Y fields.

Example

var
  p: TPoint;

begin
  p := Point(5, 6);
  WriteLn('TPoint(' + IntToStr(p.X) + ',' + IntToStr(p.Y) + ')');
end.

Output:

TPoint(5,6)

See Also