copy method

Spherical copy(
  1. Spherical other
)

Copies the values of the passed Spherical's radius, phi and theta properties to this spherical.

Implementation

Spherical copy(Spherical other) {
  radius = other.radius;
  phi = other.phi;
  theta = other.theta;

  return this;
}