Instant constructors: point()
The instant constructor point() creates a point operand dynamically. Point operands store a 2D point value composed of the X and Y coordinate.
Declaration
point point( int32 aX, int32 aY )
point point()
Parameters
aX
The X coordinate of the point.
aY
The Y coordinate of the point.
Discussion
The first version of the point() constructor returns a point value with the X and Y point coordinates initialized with the values passed in the both parameters aX and aY. For example:
var int32 x = 320; var int32 y = 240; var point size = point( x, y ); // size = <320,240>
The second version of the point() constructor doesn't accept any arguments. It simply returns a point value with its X and Y coordinates set to 0 (zero). The function of this constructor corresponds thus to the point literal <0,0>.
var point size = point(); // size = <0,0>