setTo(points) → {Phaser.Polygon}
Sets this Polygon to the given points. The points can be set from a variety of formats: An array of Point objects: [new Phaser.Point(x1, y1), ...]
An array of objects with public x/y properties: [obj1, obj2, ...]
An array of paired numbers that represent point coordinates: [x1,y1, x2,y2, ...]
An array of arrays with two elements representing x/y coordinates: [[x1, y1], [x2, y2], ...]
As separate Point arguments: setTo(new Phaser.Point(x1, y1), ...)
As sep