Rebel Fork Framework
Urho3D::SphericalHarmonics9 Struct Reference

Spherical harmonics scalar coefficients, 3 bands. More...

#include <Urho3D/Math/SphericalHarmonics.h>

Public Member Functions

 SphericalHarmonics9 ()=default
 Construct default.
 
 SphericalHarmonics9 (const Vector3 &dir)
 Construct SH9 coefficients from given normalized direction.
 

Public Attributes

float values_ [9] {}
 Coefficients.
 

Static Public Attributes

static constexpr float factors [9]
 Array of factors. More...
 
static constexpr float cosines [9]
 Array of cosines. More...
 
static const SphericalHarmonics9 ZERO
 Zero harmonics.
 

Detailed Description

Spherical harmonics scalar coefficients, 3 bands.

Member Data Documentation

◆ cosines

constexpr float Urho3D::SphericalHarmonics9::cosines[9]
staticconstexpr
Initial value:
=
{
1.0f,
2.0f / 3.0f,
2.0f / 3.0f,
2.0f / 3.0f,
0.25f,
0.25f,
0.25f,
0.25f,
0.25f
}

Array of cosines.

◆ factors

constexpr float Urho3D::SphericalHarmonics9::factors[9]
staticconstexpr
Initial value:
=
{
0.282095f,
0.488603f,
0.488603f,
0.488603f,
1.092548f,
1.092548f,
0.315392f,
1.092548f,
0.546274f
}

Array of factors.


The documentation for this struct was generated from the following files: