diff --git a/src/math/Spherical.js b/src/math/Spherical.js index 315ffb59c2b198..587294931e55db 100644 --- a/src/math/Spherical.js +++ b/src/math/Spherical.js @@ -42,7 +42,7 @@ class Spherical { makeSafe() { const EPS = 0.000001; - this.phi = Math.max( EPS, Math.min( Math.PI - EPS, this.phi ) ); + this.phi = MathUtils.clamp( this.phi, EPS, Math.PI - EPS ); return this;