Navigation
API > API/Runtime > API/Runtime/Core
A vector of spherical harmonic coefficients.
| Name | TSHVector |
| Type | class |
| Header File | /Engine/Source/Runtime/Core/Public/Math/SHMath.h |
| Include Path | #include "Math/SHMath.h" |
Syntax
template<int32 Order>
class TSHVector
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
TSHVector () |
Default constructor. | Math/SHMath.h | |
TSHVector
(
const FVector4f& Vector |
Math/SHMath.h | ||
| Math/SHMath.h | |||
TSHVector
(
float V0, |
Math/SHMath.h |
Enums
Public
Constants
| Name | Type | Remarks | Include Path |
|---|---|---|---|
| ConstantBasisIntegral | float | The integral of the constant SH basis. | Math/SHMath.h |
Variables
Public
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| V | float | Math/SHMath.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
void ApplyWindowing
(
float Lambda |
Math/SHMath.h | ||
bool AreFloatsValid() |
Math/SHMath.h | ||
float CalcIntegral() |
Calculates the integral of the function over the surface of the sphere. | Math/SHMath.h | |
FVector GetMaximumDirection() |
Compute the direction which the spherical harmonic is highest at. | Math/SHMath.h | |
void Normalize() |
Scales the function uniformly so its integral equals one. | Math/SHMath.h | |
TSHVector< 2 > SHBasisFunction
(
const FVector& Vector |
Specialization for 2nd order to avoid expensive trig functions. | Math/SHMath.h | |
TSHVector< 3 > SHBasisFunction
(
const FVector& Vector |
Specialization for 3rd order to avoid expensive trig functions. | Math/SHMath.h |
Static
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
static TSHVector AmbientFunction() |
The ambient incident lighting function. | Math/SHMath.h | |
static TSHVector CalcDiffuseTransfer
(
const FVector& Normal |
Math/SHMath.h | ||
static float FindWindowingLambda
(
const TSHVector& Vector, |
Math/SHMath.h | ||
static TSHVector SHBasisFunction
(
const FVector& Vector |
Returns the value of the SH basis L,M at the point on the sphere defined by the unit vector Vector. | Math/SHMath.h |
Operators
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
TSHVector & operator*=
(
const float& B |
In-place scalar multiplication operator. | Math/SHMath.h | |
TSHVector & operator/=
(
const float& Scalar |
In-place scalar division operator. | Math/SHMath.h | |
| In-place addition operator. | Math/SHMath.h | ||
| In-place subtraction operator. | Math/SHMath.h |