@@ -139,14 +139,14 @@ var EllipseCurve = new Class({
139139 } ,
140140
141141 /**
142- * [description]
142+ * Gets the starting point on the curve.
143143 *
144144 * @method Phaser.Curves.EllipseCurve#getStartPoint
145145 * @since 3.0.0
146146 *
147- * @param {[type] } out - [description]
147+ * @param {Phaser.Math.Vector2 } [ out] - A Vector2 object to store the result in. If not given will be created.
148148 *
149- * @return {[type] } [description]
149+ * @return {Phaser.Math.Vector2 } The coordinates of the point on the curve. If an `out` object was given this will be returned.
150150 */
151151 getStartPoint : function ( out )
152152 {
@@ -161,25 +161,25 @@ var EllipseCurve = new Class({
161161 * @method Phaser.Curves.EllipseCurve#getResolution
162162 * @since 3.0.0
163163 *
164- * @param {[type] } divisions - [description]
164+ * @param {number } divisions - [description]
165165 *
166- * @return {[type] } [description]
166+ * @return {number } [description]
167167 */
168168 getResolution : function ( divisions )
169169 {
170170 return divisions * 2 ;
171171 } ,
172172
173173 /**
174- * [description]
174+ * Get point at relative position in curve according to length.
175175 *
176176 * @method Phaser.Curves.EllipseCurve#getPoint
177177 * @since 3.0.0
178178 *
179- * @param {[type] } t - [description]
180- * @param {[type] } out - [description]
179+ * @param {float } t - The position along the curve to return. Where 0 is the start and 1 is the end.
180+ * @param {Phaser.Math.Vector2 } [ out] - A Vector2 object to store the result in. If not given will be created.
181181 *
182- * @return {[type] } [description]
182+ * @return {Phaser.Math.Vector2 } The coordinates of the point on the curve. If an `out` object was given this will be returned.
183183 */
184184 getPoint : function ( t , out )
185185 {
@@ -245,14 +245,14 @@ var EllipseCurve = new Class({
245245 } ,
246246
247247 /**
248- * [description]
248+ * Sets the horizontal radius of this curve.
249249 *
250250 * @method Phaser.Curves.EllipseCurve#setXRadius
251251 * @since 3.0.0
252252 *
253- * @param {[type] } value - [description]
253+ * @param {number } value - The horizontal radius of this curve.
254254 *
255- * @return {[type] } [description]
255+ * @return {Phaser.Curves.EllipseCurve } This curve object.
256256 */
257257 setXRadius : function ( value )
258258 {
@@ -262,14 +262,14 @@ var EllipseCurve = new Class({
262262 } ,
263263
264264 /**
265- * [description]
265+ * Sets the vertical radius of this curve.
266266 *
267267 * @method Phaser.Curves.EllipseCurve#setYRadius
268268 * @since 3.0.0
269269 *
270- * @param {[type] } value - [description]
270+ * @param {number } value - The vertical radius of this curve.
271271 *
272- * @return {[type] } [description]
272+ * @return {Phaser.Curves.EllipseCurve } This curve object.
273273 */
274274 setYRadius : function ( value )
275275 {
@@ -279,14 +279,14 @@ var EllipseCurve = new Class({
279279 } ,
280280
281281 /**
282- * [description]
282+ * Sets the width of this curve.
283283 *
284284 * @method Phaser.Curves.EllipseCurve#setWidth
285285 * @since 3.0.0
286286 *
287- * @param {[type] } value - [description]
287+ * @param {number } value - The width of this curve.
288288 *
289- * @return {[type] } [description]
289+ * @return {Phaser.Curves.EllipseCurve } This curve object.
290290 */
291291 setWidth : function ( value )
292292 {
@@ -296,14 +296,14 @@ var EllipseCurve = new Class({
296296 } ,
297297
298298 /**
299- * [description]
299+ * Sets the height of this curve.
300300 *
301301 * @method Phaser.Curves.EllipseCurve#setHeight
302302 * @since 3.0.0
303303 *
304- * @param {[type] } value - [description]
304+ * @param {number } value - The height of this curve.
305305 *
306- * @return {[type] } [description]
306+ * @return {Phaser.Curves.EllipseCurve } This curve object.
307307 */
308308 setHeight : function ( value )
309309 {
@@ -313,14 +313,14 @@ var EllipseCurve = new Class({
313313 } ,
314314
315315 /**
316- * [description]
316+ * Sets the start angle of this curve.
317317 *
318318 * @method Phaser.Curves.EllipseCurve#setStartAngle
319319 * @since 3.0.0
320320 *
321- * @param {[type] } value - [description]
321+ * @param {number } value - The start angle of this curve, in radians.
322322 *
323- * @return {[type] } [description]
323+ * @return {Phaser.Curves.EllipseCurve } This curve object.
324324 */
325325 setStartAngle : function ( value )
326326 {
@@ -330,14 +330,14 @@ var EllipseCurve = new Class({
330330 } ,
331331
332332 /**
333- * [description]
333+ * Sets the end angle of this curve.
334334 *
335335 * @method Phaser.Curves.EllipseCurve#setEndAngle
336336 * @since 3.0.0
337337 *
338- * @param {[type] } value - [description]
338+ * @param {number } value - The end angle of this curve, in radians.
339339 *
340- * @return {[type] } [description]
340+ * @return {Phaser.Curves.EllipseCurve } This curve object.
341341 */
342342 setEndAngle : function ( value )
343343 {
@@ -347,14 +347,14 @@ var EllipseCurve = new Class({
347347 } ,
348348
349349 /**
350- * [description]
350+ * Sets if this curve extends clockwise or anti-clockwise.
351351 *
352352 * @method Phaser.Curves.EllipseCurve#setClockwise
353353 * @since 3.0.0
354354 *
355- * @param {[type] } value - [description]
355+ * @param {boolean } value - The clockwise state of this curve.
356356 *
357- * @return {[type] } [description]
357+ * @return {Phaser.Curves.EllipseCurve } This curve object.
358358 */
359359 setClockwise : function ( value )
360360 {
@@ -364,14 +364,14 @@ var EllipseCurve = new Class({
364364 } ,
365365
366366 /**
367- * [description]
367+ * Sets the rotation of this curve.
368368 *
369369 * @method Phaser.Curves.EllipseCurve#setRotation
370370 * @since 3.0.0
371371 *
372- * @param {[type] } value - [description]
372+ * @param {number } value - The rotation of this curve, in radians.
373373 *
374- * @return {[type] } [description]
374+ * @return {Phaser.Curves.EllipseCurve } This curve object.
375375 */
376376 setRotation : function ( value )
377377 {
@@ -573,6 +573,16 @@ var EllipseCurve = new Class({
573573
574574} ) ;
575575
576+ /**
577+ * [description]
578+ *
579+ * @function Phaser.Curves.EllipseCurve.fromJSON
580+ * @since 3.0.0
581+ *
582+ * @param {object } data - The JSON object containing this curve data.
583+ *
584+ * @return {Phaser.Curves.EllipseCurve } [description]
585+ */
576586EllipseCurve . fromJSON = function ( data )
577587{
578588 return new EllipseCurve ( data ) ;
0 commit comments