title: Threejs rotate camera around Y
body: <p>I am little bit confused with this one :S</p>
  
  <p>I created a code where my camera does his job "halfly". I mean I can rotate the camera on a half-circle with my mousemove events but the aim would be the whole circle :)</p>
  
  <pre><code>onRotateCamera(event){
      if(this.cameraDragged){
        let radius:number = Math.round(Math.sqrt(this.camera.position.x * this.camera.position.x + this.camera.position.z * this.camera.position.z)*1000)/1000;
        let delta:number  = (this.cameraDragged.clientX - event.clientX) / 1000;
        let angle:number  = Math.round(Math.asin(this.camera.position.z/radius)*1000)/1000;
  
        angle += delta;
        this.camera.position.x = Math.round(radius * Math.cos( angle )*1000)/1000;
        this.camera.position.z = Math.round(radius * Math.sin( angle )*1000)/1000;
        this.camera.lookAt(this.scene.position);
      }
    }
  </code></pre>
  
  <p>Camera movement stops when this.camera.position.z/radius is -1 or 1 :S
  Could someone help me with this please?:)</p>