// This method is used to adjust a radius of the sphere the coordinate system of the camera
 // is based on. This means that the larger the radius, the further zoomed out you are.
 private void trackBar_zoom_ValueChanged(object sender, System.EventArgs e)
 {
     viewingAngle[6] = (trackBar_zoom.Value);
     SphereCoordinates.setRadius(viewingAngle[6]);
     SphereCoordinates.updateCoordinates(viewingAngle[0], viewingAngle[1], viewingAngle[2]);
     glControl1.Invalidate();
 }
 // Event Methods for Controlling Perspective on GUI
 // RotateX value changed event
 // This method assigns a new value to the angle to be used in calculating camera position on the XZ plane
 private void trackBar_rotateX_ValueChanged(object sender, System.EventArgs e)
 {
     viewingAngle[0] = (trackBar_rotateX.Value / 10000.0);
     SphereCoordinates.updateCoordinates(viewingAngle[0], viewingAngle[1], viewingAngle[2]);
     glControl1.Invalidate();
 }