Skip to content

Commit

Permalink
phet.dot => dot (since it's imported)
Browse files Browse the repository at this point in the history
  • Loading branch information
jonathanolson committed Sep 20, 2018
1 parent 893a2ad commit a6af508
Show file tree
Hide file tree
Showing 6 changed files with 16 additions and 16 deletions.
6 changes: 3 additions & 3 deletions js/Bounds2IO.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ define( function( require ) {
* @constructor
*/
function Bounds2IO( bounds2, phetioID ) {
assert && assertInstanceOf( bounds2, phet.dot.Bounds2 );
assert && assertInstanceOf( bounds2, dot.Bounds2 );
ObjectIO.call( this, bounds2, phetioID );
}

Expand All @@ -36,7 +36,7 @@ define( function( require ) {
* @returns {Object}
*/
toStateObject: function( bounds2 ) {
assert && assertInstanceOf( bounds2, phet.dot.Bounds2 );
assert && assertInstanceOf( bounds2, dot.Bounds2 );
return {
minX: bounds2.minX,
minY: bounds2.minY,
Expand All @@ -52,7 +52,7 @@ define( function( require ) {
* @returns {Bounds2}
*/
fromStateObject: function( stateObject ) {
return new phet.dot.Bounds2(
return new dot.Bounds2(
stateObject.minX, stateObject.minY,
stateObject.maxX, stateObject.maxY
);
Expand Down
6 changes: 3 additions & 3 deletions js/Bounds3IO.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ define( function( require ) {
* @constructor
*/
function Bounds3IO( bounds3, phetioID ) {
assert && assertInstanceOf( bounds3, phet.dot.Bounds3 );
assert && assertInstanceOf( bounds3, dot.Bounds3 );
ObjectIO.call( this, bounds3, phetioID );
}

Expand All @@ -36,7 +36,7 @@ define( function( require ) {
* @returns {Object}
*/
toStateObject: function( bounds3 ) {
assert && assertInstanceOf( bounds3, phet.dot.Bounds3 );
assert && assertInstanceOf( bounds3, dot.Bounds3 );
return {
minX: bounds3.minX,
minY: bounds3.minY,
Expand All @@ -54,7 +54,7 @@ define( function( require ) {
* @returns {Bounds3}
*/
fromStateObject: function( stateObject ) {
return new phet.dot.Bounds3(
return new dot.Bounds3(
stateObject.minX, stateObject.minY, stateObject.minZ,
stateObject.maxX, stateObject.maxY, stateObject.maxZ
);
Expand Down
2 changes: 1 addition & 1 deletion js/RandomIO.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ define( function( require ) {
* @constructor
*/
function RandomIO( random, phetioID ) {
assert && assertInstanceOf( random, phet.dot.Random );
assert && assertInstanceOf( random, dot.Random );
ObjectIO.call( this, random, phetioID );
}

Expand Down
6 changes: 3 additions & 3 deletions js/RangeIO.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ define( function( require ) {
* @constructor
*/
function RangeIO( range, phetioID ) {
assert && assertInstanceOf( range, phet.dot.Range );
assert && assertInstanceOf( range, dot.Range );
ObjectIO.call( this, range, phetioID );
}

Expand All @@ -35,7 +35,7 @@ define( function( require ) {
* @returns {Object}
*/
toStateObject: function( range ) {
assert && assertInstanceOf( range, phet.dot.Range );
assert && assertInstanceOf( range, dot.Range );
return { min: range.min, max: range.max };
},

Expand All @@ -45,7 +45,7 @@ define( function( require ) {
* @returns {Range}
*/
fromStateObject: function( stateObject ) {
return new phet.dot.Range( stateObject.min, stateObject.max );
return new dot.Range( stateObject.min, stateObject.max );
}
} );

Expand Down
6 changes: 3 additions & 3 deletions js/Vector2IO.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ define( function( require ) {
* @constructor
*/
function Vector2IO( vector2, phetioID ) {
assert && assertInstanceOf( vector2, phet.dot.Vector2 );
assert && assertInstanceOf( vector2, dot.Vector2 );
ObjectIO.call( this, vector2, phetioID );
}

Expand All @@ -36,7 +36,7 @@ define( function( require ) {
* @returns {Object}
*/
toStateObject: function( vector2 ) {
assert && assertInstanceOf( vector2, phet.dot.Vector2 );
assert && assertInstanceOf( vector2, dot.Vector2 );
return { x: vector2.x, y: vector2.y };
},

Expand All @@ -46,7 +46,7 @@ define( function( require ) {
* @returns {Vector2}
*/
fromStateObject: function( stateObject ) {
return new phet.dot.Vector2( stateObject.x, stateObject.y );
return new dot.Vector2( stateObject.x, stateObject.y );
}
} );

Expand Down
6 changes: 3 additions & 3 deletions js/Vector3IO.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ define( function( require ) {
* @constructor
*/
function Vector3IO( vector3, phetioID ) {
assert && assertInstanceOf( vector3, phet.dot.Vector3 );
assert && assertInstanceOf( vector3, dot.Vector3 );
ObjectIO.call( this, vector3, phetioID );
}

Expand All @@ -36,7 +36,7 @@ define( function( require ) {
* @returns {Object}
*/
toStateObject: function( vector3 ) {
assert && assertInstanceOf( vector3, phet.dot.Vector3 );
assert && assertInstanceOf( vector3, dot.Vector3 );
return { x: vector3.x, y: vector3.y, z: vector3.z };
},

Expand All @@ -46,7 +46,7 @@ define( function( require ) {
* @returns {Vector3}
*/
fromStateObject: function( stateObject ) {
return new phet.dot.Vector3( stateObject.x, stateObject.y, stateObject.z );
return new dot.Vector3( stateObject.x, stateObject.y, stateObject.z );
}
} );

Expand Down

0 comments on commit a6af508

Please sign in to comment.