class Geo SHCoeff

This is the documentation for Enlighten.

class Geo SHCoeff

class Geo::SHCoeff

SH Helper class.

Functions

Name

Description

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