it will take a little code, but it is useful
Or create just one function, a very common operation:
THREE.deg( deg ) // returns rad
geometry.rotateY( THREE.deg( 90 ) )
Those methods are already available.
var radians = THREE.Math.degToRad( degrees );
var degrees = THREE.Math.radToDeg( radians );
Those methods are already available.
I KNOW!
Create ALIAS to pretty syntax:
THREE.deg = function( deg ) {
return THREE.Math.degToRad( deg );
}
@WestLangley hello!
three.js is not a Math library...
I would suggest you write the code like this instead:
geometry.rotateY( 90 * THREE.Math.DEG2RAD );
Most helpful comment
Those methods are already available.