g.Point(x [, y])
Return a new Point object with x
and y
coordinates. If x
is a string, it is considered to be in the form "[number] [number]"
or "[number]@[number]"
where the first number is the x coordinate and the second is the y coordinate. Examples:
var p = g.Point(10, 20);
var p = new g.Point(10, 20);
var p = g.Point('10 20');
var p = g.Point('10@20');
var p = g.Point(g.Point(10, 20));