Difference between revisions of "TPASortEx"

From SCAR Divi Manual
Jump to: navigation, search
(Created page with "==Definition== <source lang="scar" lines="false"> procedure TPASortEx(var TPA: TPointArray; const Point: TPoint); </source> ==Availability== SCAR Divi 3.26 > Current ==Descript...")
 
(Redirected page to SortTPAEx)
 
Line 1: Line 1:
==Definition==
+
#REDIRECT [[SortTPAEx]]
<source lang="scar" lines="false">
 
procedure TPASortEx(var TPA: TPointArray; const Point: TPoint);
 
</source>
 
  
==Availability==
+
[[Category:Deprecated Functions]]
SCAR Divi 3.26 > Current
 
 
 
==Description==
 
Sorts a given [[TPointArray]] '''TPA''' by distance from a given [[TPoint]] '''Point''' using the fast [http://en.wikipedia.org/wiki/Shell_sort ShellSort] algorithm.
 
 
 
==Example==
 
<source lang="scar">
 
var
 
  TPA: TPointArray;
 
 
 
begin
 
  TPA := [Point(2, 2), Point(0, 0), Point(5, 10), Point(0, 0)];
 
  TPASortEx(TPA, Point(3, 3));
 
  WriteLn('TPointArray: ' + TPAToStr(TPA));
 
end.
 
</source>
 
 
 
Output:
 
TPointArray: (2,2);(0,0);(0,0);(5,10)
 
 
 
==See Also==
 
*[[TPASort]]
 
*[[ATPASortBySize]]
 
 
 
[[Category:Functions]]
 
[[Category:TPA Functions]]
 
[[Category:Array Functions]]
 

Latest revision as of 20:30, 20 October 2011

Redirect to: