How to rotate a Three.js Vector3 around an axis? How to rotate a Three.js Vector3 around an axis? javascript javascript

How to rotate a Three.js Vector3 around an axis?


var vector = new THREE.Vector3( 1, 0, 0 );var axis = new THREE.Vector3( 0, 1, 0 );var angle = Math.PI / 2;vector.applyAxisAngle( axis, angle );