Finished JSDocs

This commit is contained in:
Richard Davey 2020-01-09 16:38:33 +00:00
parent acb1ecce6c
commit d3aaff82e1

View file

@ -33,12 +33,31 @@ var BodyBounds = new Class({
function BodyBounds ()
{
/**
* A vec2 that stores the temporary bounds center value during calculations by methods in this class.
*
* @name Phaser.Physics.Matter.BodyBounds#boundsCenter
* @type {Phaser.Math.Vector2}
* @since 3.22.0
*/
this.boundsCenter = new Vec2();
/**
* A vec2 that stores the temporary center diff values during calculations by methods in this class.
*
* @name Phaser.Physics.Matter.BodyBounds#centerDiff
* @type {Phaser.Math.Vector2}
* @since 3.22.0
*/
this.centerDiff = new Vec2();
},
/**
* Returns the length of the given constraint, which is the distance between the two points.
* Parses the given body to get the bounds diff values from it.
*
* They're stored in this class in the temporary properties `boundsCenter` and `centerDiff`.
*
* This method is called automatically by all other methods in this class.
*
* @method Phaser.Physics.Matter.BodyBounds#parseBody
* @since 3.22.0