This is the documentation for Enlighten.
class Geo SHCoeff
class Geo::SHCoeff
SH Helper class.
Functions
Name | Description |
|---|---|
Accumulates the given coefficients into this object. | |
Accumulates the coefficient with the given index. | |
Gets the coefficient with the given index. | |
Gets the coefficient with the given index from the three given SHCoeffs, and packs them into the x,y,z channels of a v128. | |
Logging. | |
Logging. | |
Fills in the given matrix with L2 values. | |
Scales the coefficients by the given amount. | |
Accumulates the given SHCoeff coefficients into this object. | |
Resets all coefficients to zero. | |
Copies the given coefficients into this object. | |
Sets the coefficient with the given index. | |
Constructors. | |
Constructors. | |
Constructors. |
void Geo::SHCoeff::Add
public: void Add
(
const float * values,
Geo::s32 numValues,
float multiplier
)
Accumulates the given coefficients into this object.
bool Geo::SHCoeff::AddL
public: bool AddL
(
Geo::s32 idx,
float c
)
Accumulates the coefficient with the given index.
float Geo::SHCoeff::GetL
public: float GetL
(
Geo::s32 idx
) const
Gets the coefficient with the given index.
static Geo::v128 Geo::SHCoeff::GetL
public: Geo::v128 GetL
(
Geo::s32 idx,
SHCoeff rgb
)
Gets the coefficient with the given index from the three given SHCoeffs, and packs them into the x,y,z channels of a v128.
GeoSymbolString Geo::SHCoeff::Log
public: GeoSymbolString Log() const
Logging.
static GeoSymbolString Geo::SHCoeff::LogOrder
public: GeoSymbolString LogOrder()
Logging.
void Geo::SHCoeff::MakeL2Matrix
public: void MakeL2Matrix
(
Geo::Matrix & mat
) const
Fills in the given matrix with L2 values.
SHCoeff& Geo::SHCoeff::operator*
public: SHCoeff & operator*
(
float rhs
)
Scales the coefficients by the given amount.
SHCoeff& Geo::SHCoeff::operator+=
public: SHCoeff & operator+=
(
const SHCoeff & rhs
)
Accumulates the given SHCoeff coefficients into this object.
void Geo::SHCoeff::Reset
public: void Reset()
Resets all coefficients to zero.
void Geo::SHCoeff::Set
public: void Set
(
const float * values,
Geo::s32 numValues
)
Copies the given coefficients into this object.
bool Geo::SHCoeff::SetL
public: bool SetL
(
Geo::s32 idx,
float c
)
Sets the coefficient with the given index.
Geo::SHCoeff::SHCoeff
public: SHCoeff()
Constructors.
Geo::SHCoeff::SHCoeff
public: SHCoeff
(
const float * values,
Geo::s32 numValues
)
Constructors.
Geo::SHCoeff::SHCoeff
public: SHCoeff
(
const float * shCoefficients,
s32 shOrder,
const s8 * coefficientOutputOrder
)
Constructors.