Difference between revisions of "Point"
From SCAR Divi Manual
(Created page with "==Definition== <source lang="scar" lines="false"> function Point(x, y: Integer): TPoint; </source> ==Availability== SCAR Divi 3.00 > Current ===Aliases=== *IntToPoint ==Descri...") |
|||
| Line 26: | Line 26: | ||
Output: | Output: | ||
TPoint(5,6) | TPoint(5,6) | ||
| + | |||
| + | ==See Also== | ||
| + | *[[PointToBox]] | ||
[[Category:Functions]] | [[Category:Functions]] | ||
[[Category:Conversion Functions]] | [[Category:Conversion Functions]] | ||
Revision as of 22:35, 27 June 2011
Definition
function Point(x, y: Integer): TPoint;
Availability
SCAR Divi 3.00 > Current
Aliases
- IntToPoint
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)