set method

SphericalHarmonics3 set(
  1. List<Vector3> coefficients
)

coefficients - An array of SH coefficients.

Sets the given SH coefficients to this instance.

Implementation

SphericalHarmonics3 set(List<Vector3> coefficients) {
  for (int i = 0; i < 9; i++) {
    this.coefficients[i].setFrom(coefficients[i]);
  }

  return this;
}