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

javascript, rotation, three.js, vector

Solution

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

Problem

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

Original source