fromArray

fun fromArray(array: DoubleArray, offset: Int = 0): SphericalHarmonics3

Sets the SH coefficients of this instance from the given array.

Return

A reference to this spherical harmonics.

Parameters

array

An array holding the SH coefficients.

offset

The array offset where to start copying.