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;
}
sh
- The SH to add.
Adds the given SH to this instance.
SphericalHarmonics3 add(SphericalHarmonics3 sh) {
for (int i = 0; i < 9; i++) {
coefficients[i].add(sh.coefficients[i]);
}
return this;
}