Difference between revisions of "OffsetTPA"
From SCAR Divi Manual
(Created page with "==Definition== <source lang="scar" lines="false"> procedure OffsetTPA(var TPA: TPointArray; const XOffset, YOffset: Integer); </source> ==Availability== SCAR Divi 3.28 > Current...") |
(No difference)
|
Revision as of 23:04, 19 October 2011
Contents
Definition
procedure OffsetTPA(var TPA: TPointArray; const XOffset, YOffset: Integer);
Availability
SCAR Divi 3.28 > Current
Description
Offsets the points a given TPointArray TPA by XOffset for the x component and YOffset for the y component.
Example
var TPA: TPointArray; begin TPA := [Point(5, 6), Point(0, 0), Point(1, 1)]; OffsetTPA(TPA, 3, 2); WriteLn('TPointArray: ' + TPAToStr(TPA)); end.
Output:
TPointArray: (8,8);(3,2);(4,3)