method createPoint

point createPoint(int32 x,int32 y);

Argumente

Zurückgegebener Wert

This method returns a Point object created with the given x and y values.
For more information please see point class.
function onSample()
{
    var factory = shell.factory;
    var pt = (factory) ? factory.createPoint(10, 10) : null;
    if (pt)
    {
        shell.print("x = " + pt.x);
        shell.print("y = " + pt.y);
    }
}