/** * Rotates the plot, i.e. change the view angle. * @param t the change add to θ * @param p the change add to φ */ public void rotate(double t, double p) { theta = theta - t / 100; phi = phi + p / 100; precompute(); reset(); } }
/** * Sets the view angle. */ public void setView(double theta, double phi) { this.theta = theta; this.phi = phi; precompute(); reset(); }