Difference between revisions of "Point"

From SCAR Divi Manual
Jump to: navigation, search
 
(One intermediate revision by the same user not shown)
Line 8: Line 8:
  
 
===Aliases===
 
===Aliases===
*IntToPoint
+
*IntToPoint (SCAR Divi 3.00 > Current)
  
 
==Description==
 
==Description==
Line 32: Line 32:
 
[[Category:Functions]]
 
[[Category:Functions]]
 
[[Category:Conversion Functions]]
 
[[Category:Conversion Functions]]
 +
[[Category:Data Functions]]

Latest revision as of 11:50, 1 July 2011

Definition

function Point(x, y: Integer): TPoint;

Availability

SCAR Divi 3.00 > Current

Aliases

  • IntToPoint (SCAR Divi 3.00 > Current)

Description

Converts a 2 dimensional point defined by the given integer values x and y to a TPoint type value.

Example

var
  p: TPoint;

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

Output:

TPoint(5,6)

See Also