|
HDK
|
#include <Harmonics.h>
Public Member Functions | |
| ShCoeffs ()=default | |
| 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. More... | |
| bool | operator!= (const ShCoeffs &rhs) const |
| Return true if the given vector differs from this one. More... | |
Indexing Operators | |
| C & | operator[] (size_t i) |
| Return the coefficient at the given index. More... | |
| const C & | operator[] (size_t i) const |
| Return the const coefficient at the given index. More... | |
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.
Definition at line 22 of file Harmonics.h.
|
inlineexplicit |
Definition at line 30 of file Harmonics.h.
|
inline |
Return true if the given vector differs from this one.
Definition at line 40 of file Harmonics.h.
|
inline |
Return true if the given vector is identical to this one.
Definition at line 37 of file Harmonics.h.
|
inline |
Return the coefficient at the given index.
Definition at line 47 of file Harmonics.h.
|
inline |
Return the const coefficient at the given index.
Definition at line 50 of file Harmonics.h.
|
protected |
Definition at line 55 of file Harmonics.h.
|
static |
Definition at line 25 of file Harmonics.h.
|
static |
Definition at line 26 of file Harmonics.h.