equals method

bool equals(
  1. SphericalHarmonics3 sh
)

Implementation

bool equals(SphericalHarmonics3 sh) {
  for (int i = 0; i < 9; i++) {
    if (!coefficients[i].equals(sh.coefficients[i])) {
      return false;
    }
  }

  return true;
}