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