Difference between revisions of "TPAInvert"

From SCAR Divi Manual
Jump to: navigation, search
(Example)
(Redirected page to ReverseTPA)
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
==Definition==
+
#REDIRECT [[ReverseTPA]]
<source lang="scar" lines="false">
 
procedure TPAInvert(var TPA: TPointArray);
 
</source>
 
  
==Availability==
+
[[Category:Deprecated Functions]]
SCAR Divi 3.26 > Current
 
 
 
===Aliases===
 
*InvertTPA (SCAR Divi 3.20b > Current)
 
 
 
==Description==
 
This function inverts a given [[TPointArray]] '''TPA''' by reversing the order of the coordinates contained in within it.
 
 
 
==Example==
 
<source lang="scar">
 
var
 
  TPA: TPointArray;
 
 
 
begin
 
  TPA := [Point(0, 0), Point(2, 2), Point(5, 10)];
 
  TPAInvert(TPA);
 
  WriteLn('TPointArray: ' + TPAToStr(TPA));
 
end.
 
</source>
 
 
 
Output:
 
TPointArray: (5,10);(2,2);(0,0)
 
 
 
==See Also==
 
*[[TPASort]]
 
*[[TPASortEx]]
 
 
 
[[Category:Functions]]
 
[[Category:TPA Functions]]
 

Latest revision as of 15:40, 10 November 2012

Redirect to: