MaterialX 1.38.9
Loading...
Searching...
No Matches
ShCoeffs< C, B > Class Template Reference

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
 

Detailed Description

template<class C, size_t B>
class ShCoeffs< C, B >

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.


The documentation for this class was generated from the following file: