Posted in Uncategorized Add THREE.deg(rad) and THREE.rad(deg) functions, to convert values Fantashit January 6, 2021 3 Comments on Add THREE.deg(rad) and THREE.rad(deg) functions, to convert values it will take a little code, but it is useful Author: Fantashit

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 ); }

Those methods are already available.

I KNOW!

Create ALIAS to pretty syntax:

I would suggest you write the code like this instead: