Skip to content

Commit

Permalink
progress on dot Util separation, see phetsims/dot#4
Browse files Browse the repository at this point in the history
  • Loading branch information
jonathanolson committed Feb 13, 2025
1 parent b0fb068 commit 451272f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions js/charges-and-fields/model/ElectricPotentialLine.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
*/

import Emitter from '../../../../axon/js/Emitter.js';
import dot from '../../../../dot/js/dot.js';
import { clamp } from '../../../../dot/js/util/clamp.js';
import Vector2 from '../../../../dot/js/Vector2.js';
import Vector2Property from '../../../../dot/js/Vector2Property.js';
import Shape from '../../../../kite/js/Shape.js';
Expand Down Expand Up @@ -353,7 +353,7 @@ class ElectricPotentialLine extends PhetioObject {
epsilonDistance *= ( 2 * Math.PI / 360 ) / deflectionAngle;
}
// clamp the value of epsilonDistance to be within this range
epsilonDistance = dot.clamp( Math.abs( epsilonDistance ), MIN_EPSILON_DISTANCE, MAX_EPSILON_DISTANCE );
epsilonDistance = clamp( Math.abs( epsilonDistance ), MIN_EPSILON_DISTANCE, MAX_EPSILON_DISTANCE );
epsilonDistance = isClockwise ? epsilonDistance : -epsilonDistance;
return epsilonDistance;
}
Expand Down

0 comments on commit 451272f

Please sign in to comment.