Implemented vector rotation.