mirror of
https://github.com/photonstorm/phaser
synced 2024-11-15 01:17:43 +00:00
Added some docstring to the Polygon class
This commit is contained in:
parent
06e33bc8e4
commit
35dd98c72f
1 changed files with 11 additions and 0 deletions
|
@ -1,3 +1,14 @@
|
|||
/**
|
||||
* Creates a new Polygon. You have to provide a list of points
|
||||
* @class Phaser.Polygon
|
||||
* @classdesc The polygon represents a list of orderded points in space
|
||||
* @constructor
|
||||
* @param points* {Array<Point>|Array<Number>|Point...|Number...} This can be an array of Points that form the polygon,
|
||||
* a flat array of numbers that will be interpreted as [x,y, x,y, ...], or the arugments passed can be
|
||||
* all the points of the polygon e.g. `new PIXI.Polygon(new PIXI.Point(), new PIXI.Point(), ...)`, or the
|
||||
* arguments passed can be flat x,y values e.g. `new PIXI.Polygon(x,y, x,y, x,y, ...)` where `x` and `y` are
|
||||
* Numbers.
|
||||
**/
|
||||
Phaser.Polygon = function (points) {
|
||||
|
||||
PIXI.Polygon.call(this, points);
|
||||
|
|
Loading…
Reference in a new issue