code: public void rotate(double t, double p) {
          theta = theta - t / 100;
          phi = phi + p / 100;
          precompute();
          reset();
      }
docs: Rotates the plot, i.e. change the view angle.
  @param t the change add to &theta;
  @param p the change add to &phi;