Rebel Fork Framework
Urho3D::SphericalHarmonicsColor9 Struct Reference

Spherical harmonics color coefficients, 3 bands. Use Vector3 instead of Color to save memory. More...

#include <Urho3D/Math/SphericalHarmonics.h>

Public Member Functions

 SphericalHarmonicsColor9 ()=default
 Construct default.
 
 SphericalHarmonicsColor9 (const Vector3 &color)
 Construct SH9 coefficients from given color.
 
 SphericalHarmonicsColor9 (const Color &color)
 Construct SH9 coefficients from given color.
 
 SphericalHarmonicsColor9 (const Vector3 &dir, const Vector3 &color)
 Construct SH9 coefficients from given normalized direction and color.
 
 SphericalHarmonicsColor9 (const Vector3 &dir, const Color &color)
 Construct SH9 coefficients from given normalized direction and color.
 
Vector3 Evaluate (const Vector3 &dir) const
 Evaluate at given direction.
 
Vector3 EvaluateAverage () const
 Evaluate average.
 
SphericalHarmonicsColor9operator+= (const SphericalHarmonicsColor9 &rhs)
 Accumulate spherical harmonics (inplace).
 
SphericalHarmonicsColor9operator*= (float rhs)
 Scale spherical harmonics (inplace).
 
SphericalHarmonicsColor9 operator* (float rhs) const
 Scale spherical harmonics.
 

Public Attributes

Vector3 values_ [9] {}
 Coefficients.
 

Static Public Attributes

static const SphericalHarmonicsColor9 ZERO
 Zero harmonics.
 

Detailed Description

Spherical harmonics color coefficients, 3 bands. Use Vector3 instead of Color to save memory.


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