scale method

s - The scale factor.

Scales this SH by the given scale factor.

Implementation

SphericalHarmonics3 scale(double s) {
  for (int i = 0; i < 9; i++) {
    coefficients[i].scale(s);
  }

  return this;
}