3 thoughts on “Add THREE.deg(rad) and THREE.rad(deg) functions, to convert values

  1. Those methods are already available.

    var radians = THREE.Math.degToRad( degrees );
    var degrees = THREE.Math.radToDeg( radians );
  2. Those methods are already available.

    I KNOW!

    Create ALIAS to pretty syntax:

    THREE.deg = function( deg ) {
      return THREE.Math.degToRad( deg );
    }
  3. I would suggest you write the code like this instead:

    geometry.rotateY( 90 * THREE.Math.DEG2RAD );

Comments are closed.