This is the documentation for Enlighten.

class Geo SHCoeff

class Geo::SHCoeff

SH Helper class.

Functions

Name Description
Add(const float *, Geo::s32, float)

Accumulates the given coefficients into this object.

AddL(Geo::s32, float)

Accumulates the coefficient with the given index.

GetL(Geo::s32)

Gets the coefficient with the given index.

GetL(Geo::s32, SHCoeff)

Gets the coefficient with the given index from the three given SHCoeffs, and packs them into the x,y,z channels of a v128.

Log()

Logging.

LogOrder()

Logging.

MakeL2Matrix(Geo::Matrix &)

Fills in the given matrix with L2 values.

operator*(float)

Scales the coefficients by the given amount.

operator+=(const SHCoeff &)

Accumulates the given SHCoeff coefficients into this object.

Reset()

Resets all coefficients to zero.

Set(const float *, Geo::s32)

Copies the given coefficients into this object.

SetL(Geo::s32, float)

Sets the coefficient with the given index.

SHCoeff()

Constructors.

SHCoeff(const float *, Geo::s32)

Constructors.

SHCoeff(const float *, s32, const s8 *)

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.