TPoint

From SCAR Divi Manual
Revision as of 20:03, 26 June 2011 by Freddy (talk | contribs)
Jump to: navigation, search

Definition

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

Description

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

Example

var
  p: TPoint;

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

See Also