Added the possibility to wrap an existing coefficient vector
This commit is contained in:
parent
796c2f0b56
commit
3765096290
|
|
@ -167,6 +167,13 @@ public :
|
||||||
return sph;
|
return sph;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static SphericalHarmonics Wrap(ScalarType * _coefficients)
|
||||||
|
{
|
||||||
|
SphericalHarmonics sph;
|
||||||
|
for(i = 0; i < (int) MAX_BAND * MAX_BAND; ++i) sph.coefficients[i] = _coefficients[i];
|
||||||
|
return sph;
|
||||||
|
}
|
||||||
|
|
||||||
ScalarType operator()(ScalarType theta, ScalarType phi)
|
ScalarType operator()(ScalarType theta, ScalarType phi)
|
||||||
{
|
{
|
||||||
ScalarType f = 0;
|
ScalarType f = 0;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue