Skip to content

Commit

Permalink
add JSDOC to rectangle (see #49)
Browse files Browse the repository at this point in the history
  • Loading branch information
veillette committed Jun 27, 2016
1 parent 202581b commit f894951
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions js/Rectangle.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,13 @@ define( function( require ) {
var inherit = require( 'PHET_CORE/inherit' );
var Bounds2 = require( 'DOT/Bounds2' );

/**
* @param {number} x
* @param {number} y
* @param {number} width
* @param {number} height
* @constructor
*/
function Rectangle( x, y, width, height ) {
assert && assert( height !== undefined, 'Rectangle requires 4 parameters' );
Bounds2.call( this, x, y, x + width, y + height );
Expand Down

0 comments on commit f894951

Please sign in to comment.