@@ -19,10 +19,10 @@ var Vector2 = require('../../math/Vector2');
1919 * @constructor
2020 * @since 3.0.0
2121 *
22- * @param {number } [x1=0] - [description]
23- * @param {number } [y1=0] - [description]
24- * @param {number } [x2=0] - [description]
25- * @param {number } [y2=0] - [description]
22+ * @param {number } [x1=0] - The x coordinate of the lines starting point.
23+ * @param {number } [y1=0] - The y coordinate of the lines starting point.
24+ * @param {number } [x2=0] - The x coordinate of the lines ending point.
25+ * @param {number } [y2=0] - The y coordinate of the lines ending point.
2626 */
2727var Line = new Class ( {
2828
@@ -36,7 +36,7 @@ var Line = new Class({
3636 if ( y2 === undefined ) { y2 = 0 ; }
3737
3838 /**
39- * [description]
39+ * The x coordinate of the lines starting point.
4040 *
4141 * @name Phaser.Geom.Line#x1
4242 * @type {number }
@@ -45,7 +45,7 @@ var Line = new Class({
4545 this . x1 = x1 ;
4646
4747 /**
48- * [description]
48+ * The y coordinate of the lines starting point.
4949 *
5050 * @name Phaser.Geom.Line#y1
5151 * @type {number }
@@ -54,7 +54,7 @@ var Line = new Class({
5454 this . y1 = y1 ;
5555
5656 /**
57- * [description]
57+ * The x coordinate of the lines ending point.
5858 *
5959 * @name Phaser.Geom.Line#x2
6060 * @type {number }
@@ -63,7 +63,7 @@ var Line = new Class({
6363 this . x2 = x2 ;
6464
6565 /**
66- * [description]
66+ * The y coordinate of the lines ending point.
6767 *
6868 * @name Phaser.Geom.Line#y2
6969 * @type {number }
@@ -83,7 +83,7 @@ var Line = new Class({
8383 * @param {float } position - [description]
8484 * @param {(Phaser.Geom.Point|object) } [output] - [description]
8585 *
86- * @return {(Phaser.Geom.Point|object) } A Point, or point-like object, containing the coordinates of the point around the ellipse .
86+ * @return {(Phaser.Geom.Point|object) } A Point, or point-like object, containing the coordinates of the point on the line .
8787 */
8888 getPoint : function ( position , output )
8989 {
@@ -110,32 +110,32 @@ var Line = new Class({
110110 } ,
111111
112112 /**
113- * [description]
113+ * Get a random Point on the Line.
114114 *
115115 * @method Phaser.Geom.Line#getRandomPoint
116116 * @since 3.0.0
117117 *
118118 * @generic {Phaser.Geom.Point} O - [point,$return]
119119 *
120- * @param {(Phaser.Geom.Point|object) } [point] - [description]
120+ * @param {(Phaser.Geom.Point|object) } [point] - An instance of a Point to be modified.
121121 *
122- * @return {Phaser.Geom.Point } [description]
122+ * @return {Phaser.Geom.Point } A random Point on the Line.
123123 */
124124 getRandomPoint : function ( point )
125125 {
126126 return Random ( this , point ) ;
127127 } ,
128128
129129 /**
130- * [description]
130+ * Set new coordinates for the line endpoints.
131131 *
132132 * @method Phaser.Geom.Line#setTo
133133 * @since 3.0.0
134134 *
135- * @param {number } [x1=0] - [description]
136- * @param {number } [y1=0] - [description]
137- * @param {number } [x2=0] - [description]
138- * @param {number } [y2=0] - [description]
135+ * @param {number } [x1=0] - The x coordinate of the lines starting point.
136+ * @param {number } [y1=0] - The y coordinate of the lines starting point.
137+ * @param {number } [x2=0] - The x coordinate of the lines ending point.
138+ * @param {number } [y2=0] - The y coordinate of the lines ending point.
139139 *
140140 * @return {Phaser.Geom.Line } This Line object.
141141 */
0 commit comments