ReverseTPA
From SCAR Divi Manual
Revision as of 21:51, 7 September 2012 by Freddy (talk | contribs) (Freddy moved page InvertTPA to ReverseTPA without leaving a redirect)
Definition
procedure InvertTPA(var TPA: TPointArray);
Availability
SCAR Divi 3.20b > Current
Aliases
- TPAInvert (SCAR Divi 3.26 > 3.35)
Description
This function inverts a given TPointArray TPA by reversing the order of the coordinates contained in within it.
Example
var TPA: TPointArray; begin TPA := [Point(0, 0), Point(2, 2), Point(5, 10)]; InvertTPA(TPA); WriteLn(TPAToStr(TPA)); end.
Output:
(5,10);(2,2);(0,0)