Skip to content

Commit

Permalink
Added REVIEW comments #29
Browse files Browse the repository at this point in the history
  • Loading branch information
Denz1994 committed Dec 21, 2018
1 parent d80aac3 commit a18d661
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions js/building/model/ShapeContainer.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ define( require => {
const Util = require( 'DOT/Util' );
const Vector2 = require( 'DOT/Vector2' );

// REVIEW: Please add doc about how this is used.
const scratchVector = new Vector2();

class ShapeContainer {
Expand Down Expand Up @@ -88,6 +89,7 @@ define( require => {
* @returns {number}
*/
distanceFromPoint( point ) {

// Subtract off our local offset
const localPoint = scratchVector.set( point ).subtract( this.offset );

Expand Down

0 comments on commit a18d661

Please sign in to comment.