You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/geom/Polygon.js
+26-7Lines changed: 26 additions & 7 deletions
Original file line number
Diff line number
Diff line change
@@ -53,12 +53,14 @@ Phaser.Polygon = function (points) {
53
53
Phaser.Polygon.prototype={
54
54
55
55
/**
56
-
* Creates a clone of this polygon.
57
-
*
58
-
* @method Phaser.Polygon#clone
59
-
* @return {Phaser.Polygon} A copy of the polygon.
60
-
*/
61
-
clone: function(){
56
+
* Creates a copy of the given Polygon.
57
+
* This is a deep clone, the resulting copy contains new Phaser.Point objects
58
+
*
59
+
* @method Phaser.Polygon#clone
60
+
* @param {Phaser.Polygon} [output] Optional Polygon object. If given the values will be set into this object, otherwise a brand new Polygon object will be created and returned.
61
+
* @return {Phaser.Polygon} The new Polygon object.
0 commit comments