add method

sh - The SH to add.

Adds the given SH to this instance.

Implementation

SphericalHarmonics3 add(SphericalHarmonics3 sh) {
  for (int i = 0; i < 9; i++) {
    coefficients[i].add(sh.coefficients[i]);
  }

  return this;
}