Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

class Geo::SHCoeff

SH Helper class.

Functions

NameDescription
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.


Anchor
a0ff3ad833a93fb289b7bf190cdd98e3e
a0ff3ad833a93fb289b7bf190cdd98e3e

void Geo::SHCoeff::Add

...

public: void Add
(
    const float * values,
    Geo::s32 numValues,
    float multiplier
)

...

Accumulates the given coefficients into this object.


Anchor
a5e7650fdb21dacde7414419177759d83
a5e7650fdb21dacde7414419177759d83

bool Geo::SHCoeff::AddL

...

public: bool AddL
(
    Geo::s32 idx,
    float c
)

...

Accumulates the coefficient with the given index.


Anchor
a361eec9616babdd3025ee253756afb5e
a361eec9616babdd3025ee253756afb5e

float Geo::SHCoeff::GetL

...

public: float GetL
(
    Geo::s32 idx
) const

...

Gets the coefficient with the given index.


Anchor
aee816803f4dc754feaa6afe3354f9bd3
aee816803f4dc754feaa6afe3354f9bd3

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.


Anchor
ababf3030b34bdf31499619fb5c5406f4
ababf3030b34bdf31499619fb5c5406f4

GeoSymbolString Geo::SHCoeff::Log

...

public: GeoSymbolString Log() const

...

Logging.


Anchor
ab1d901534b0a97eda883ea97a1886bc6
ab1d901534b0a97eda883ea97a1886bc6

static GeoSymbolString Geo::SHCoeff::LogOrder

...

public: GeoSymbolString LogOrder()

...

Logging.


Anchor
af976b4d6b0d31a6385a07b109ee7d35d
af976b4d6b0d31a6385a07b109ee7d35d

void Geo::SHCoeff::MakeL2Matrix

...

public: void MakeL2Matrix
(
    Geo::Matrix & mat
) const

...

Fills in the given matrix with L2 values.


Anchor
a8a62281a181d6541658f56adbdfb97ce
a8a62281a181d6541658f56adbdfb97ce

SHCoeff& Geo::SHCoeff::operator*

...

public: SHCoeff & operator*
(
    float rhs
)

...

Scales the coefficients by the given amount.


Anchor
a2c5a853cd8a83c39488b8c0573d8c6a0
a2c5a853cd8a83c39488b8c0573d8c6a0

SHCoeff& Geo::SHCoeff::operator+=

...

public: SHCoeff & operator+=
(
    const SHCoeff & rhs
)

...

Accumulates the given SHCoeff coefficients into this object.


Anchor
a41acd46a2330ff3bfdf29f99b78a58fb
a41acd46a2330ff3bfdf29f99b78a58fb

void Geo::SHCoeff::Reset

...

public: void Reset()

...

Resets all coefficients to zero.


Anchor
a28324b8beb8faf6b32b95f873d7d2ceb
a28324b8beb8faf6b32b95f873d7d2ceb

void Geo::SHCoeff::Set

...

public: void Set
(
    const float * values,
    Geo::s32 numValues
)

...

Copies the given coefficients into this object.


Anchor
a498f5ef6299c3242f123056a7556ac3a
a498f5ef6299c3242f123056a7556ac3a

bool Geo::SHCoeff::SetL

...

public: bool SetL
(
    Geo::s32 idx,
    float c
)

...

Sets the coefficient with the given index.


Anchor
a733fa23eadb6ac45aafc836d6e17ce1d
a733fa23eadb6ac45aafc836d6e17ce1d

Geo::SHCoeff::SHCoeff

...

public: SHCoeff()

...

Constructors.


Anchor
a1588e3535477e1110769146cd458d508
a1588e3535477e1110769146cd458d508

Geo::SHCoeff::SHCoeff

...

public: SHCoeff
(
    const float * values,
    Geo::s32 numValues
)

...

Constructors.


Anchor
a9cd5343856712e77ffb008aea3e17c80
a9cd5343856712e77ffb008aea3e17c80

Geo::SHCoeff::SHCoeff

...

public: SHCoeff
(
    const float * shCoefficients,
    s32 shOrder,
    const s8 * coefficientOutputOrder
)

...

Constructors.