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
* @const {boolean} Phaser.Boot.Config#pixelArt - Prevent pixel art from becoming blurred when scaled. It will remain crisp (tells the WebGL renderer to automatically create textures using a linear filter mode).
* @param {Phaser.GameObjects.Graphics} graphics - The graphics object this curve should be drawn to.
152
+
* @param {integer} [pointsTotal=32] - The number of intermediary points that make up this curve. A higher number of points will result in a smoother curve.
Copy file name to clipboardExpand all lines: src/geom/rectangle/Rectangle.js
+15-11Lines changed: 15 additions & 11 deletions
Original file line number
Diff line number
Diff line change
@@ -205,13 +205,13 @@ var Rectangle = new Class({
205
205
},
206
206
207
207
/**
208
-
* [description]
208
+
* Sets the width and height of the Rectangle.
209
209
*
210
210
* @method Phaser.Geom.Rectangle#setSize
211
211
* @since 3.0.0
212
212
*
213
-
* @param {number} width - [description]
214
-
* @param {number} [height=width] - [description]
213
+
* @param {number} width - The width to set the Rectangle to.
214
+
* @param {number} [height=width] - The height to set the Rectangle to.
215
215
*
216
216
* @return {Phaser.Geom.Rectangle} This Rectangle object.
217
217
*/
@@ -226,12 +226,12 @@ var Rectangle = new Class({
226
226
},
227
227
228
228
/**
229
-
* [description]
229
+
* Determines if the Rectangle is empty. A Rectangle is empty if its width or height is less than or equal to 0.
230
230
*
231
231
* @method Phaser.Geom.Rectangle#isEmpty
232
232
* @since 3.0.0
233
233
*
234
-
* @return {boolean} [description]
234
+
* @return {boolean} `true` if the Rectangle is empty. A Rectangle object is empty if its width or height is less than or equal to 0.
235
235
*/
236
236
isEmpty: function()
237
237
{
@@ -323,7 +323,8 @@ var Rectangle = new Class({
323
323
},
324
324
325
325
/**
326
-
* [description]
326
+
* The x coordinate of the left of the Rectangle.
327
+
* Changing the left property of a Rectangle object has no effect on the y and height properties. However it does affect the width property, whereas changing the x value does not affect the width property.
327
328
*
328
329
* @name Phaser.Geom.Rectangle#left
329
330
* @type {number}
@@ -353,7 +354,8 @@ var Rectangle = new Class({
353
354
},
354
355
355
356
/**
356
-
* [description]
357
+
* The sum of the x and width properties.
358
+
* Changing the right property of a Rectangle object has no effect on the x, y and height properties, however it does affect the width property.
357
359
*
358
360
* @name Phaser.Geom.Rectangle#right
359
361
* @type {number}
@@ -381,7 +383,8 @@ var Rectangle = new Class({
381
383
},
382
384
383
385
/**
384
-
* [description]
386
+
* The y coordinate of the top of the Rectangle. Changing the top property of a Rectangle object has no effect on the x and width properties.
387
+
* However it does affect the height property, whereas changing the y value does not affect the height property.
385
388
*
386
389
* @name Phaser.Geom.Rectangle#top
387
390
* @type {number}
@@ -411,7 +414,8 @@ var Rectangle = new Class({
411
414
},
412
415
413
416
/**
414
-
* [description]
417
+
* The sum of the y and height properties.
418
+
* Changing the bottom property of a Rectangle object has no effect on the x, y and width properties, but does change the height property.
415
419
*
416
420
* @name Phaser.Geom.Rectangle#bottom
417
421
* @type {number}
@@ -439,7 +443,7 @@ var Rectangle = new Class({
439
443
},
440
444
441
445
/**
442
-
* [description]
446
+
* The x coordinate of the center of the Rectangle.
443
447
*
444
448
* @name Phaser.Geom.Rectangle#centerX
445
449
* @type {number}
@@ -460,7 +464,7 @@ var Rectangle = new Class({
460
464
},
461
465
462
466
/**
463
-
* [description]
467
+
* The y coordinate of the center of the Rectangle.
Copy file name to clipboardExpand all lines: src/geom/triangle/BuildEquilateral.js
+6-12Lines changed: 6 additions & 12 deletions
Original file line number
Diff line number
Diff line change
@@ -6,24 +6,18 @@
6
6
7
7
varTriangle=require('./Triangle');
8
8
9
-
// Builds an equilateral triangle.
10
-
// In the equilateral triangle, all the sides are the same length (congruent)
11
-
// and all the angles are the same size (congruent).
12
-
13
-
// The x/y specifies the top-middle of the triangle (x1/y1) and length
14
-
// is the length of each side
15
-
16
9
/**
17
-
* [description]
10
+
* Builds an equilateral triangle. In the equilateral triangle, all the sides are the same length (congruent) and all the angles are the same size (congruent).
11
+
* The x/y specifies the top-middle of the triangle (x1/y1) and length is the length of each side.
18
12
*
19
13
* @function Phaser.Geom.Triangle.BuildEquilateral
20
14
* @since 3.0.0
21
15
*
22
-
* @param {number} x - [description]
23
-
* @param {number} y - [description]
24
-
* @param {number} length - [description]
16
+
* @param {number} x - x coordinate of the top point of the triangle.
17
+
* @param {number} y - y coordinate of the top point of the triangle.
18
+
* @param {number} length - Length of each side of the triangle.
25
19
*
26
-
* @return {Phaser.Geom.Triangle} [description]
20
+
* @return {Phaser.Geom.Triangle} The Triangle object of the given size.
0 commit comments