|
MaterialX 1.38.2
|
Class template for a vector of spherical harmonic coefficients. More...
#include <Harmonics.h>
Public Member Functions | |
| ShCoeffs (const std::array< C, NUM_COEFFS > &arr) | |
Comparison Operators | |
| bool | operator== (const ShCoeffs &rhs) const |
| Return true if the given vector is identical to this one. | |
| bool | operator!= (const ShCoeffs &rhs) const |
| Return true if the given vector differs from this one. | |
Indexing Operators | |
| C & | operator[] (size_t i) |
| Return the coefficient at the given index. | |
| const C & | operator[] (size_t i) const |
| Return the const coefficient at the given index. | |
Static Public Attributes | |
| static const size_t | NUM_BANDS = B |
| static const size_t | NUM_COEFFS = B * B |
Protected Attributes | |
| std::array< C, NUM_COEFFS > | _arr |
Class template for a vector of spherical harmonic coefficients.
Template parameter C is the coefficient type (e.g. double, Color3). Template parameter B is the number of spherical harmonic bands.