Microsoft DirectX 9.0 SDK Update (October 2004)

SphericalHarmonics Class

Language:

Note: This documentation is preliminary and is subject to change.

Encapsulates spherical harmonic (SH) mathematical functions.

Definition

Visual Basic .NET NotInheritable Public Class SphericalHarmonics
   Inherits Object 
C# public sealed class SphericalHarmonics : Object
Managed C++ public __gc __sealed class SphericalHarmonics  : public Object
JScript .NET public class SphericalHarmonics extends Object

Members Table

Field Description
static (Shared in Visual Basic .NET) MaximumOrder Retrieves the maximum order for SH evaluation.
static (Shared in Visual Basic .NET) MinimumOrder Retrieves the minimum order for SH evaluation.
Method Description
static (Shared in Visual Basic .NET) Add Adds two SH vectors together; in other words, Out[i] = A[i] + B[i].
static (Shared in Visual Basic .NET) Dot Computes the dot product of two SH vectors.
static (Shared in Visual Basic .NET) EvaluateConeLight Evaluates a light that is a cone of constant intensity and returns spectral SH data.
static (Shared in Visual Basic .NET) EvaluateDirection Evaluates the SH basis functions from an input direction vector.
static (Shared in Visual Basic .NET) EvaluateDirectionalLight Evaluates a directional light and returns spectral SH data.
static (Shared in Visual Basic .NET) EvaluateHemisphereLight Evaluates a light that is a linear interpolation between two colors over the sphere.
static (Shared in Visual Basic .NET) EvaluateSphericalLight Evaluates a spherical light and returns spectral SH data.
static (Shared in Visual Basic .NET) ProjectCubeMap Projects a function represented on a cube map into SH.
static (Shared in Visual Basic .NET) Rotate Rotates the SH vector by the given matrix.
static (Shared in Visual Basic .NET) RotateZ Rotates the SH vector in the z-axis by the given angle.
static (Shared in Visual Basic .NET) Scale Scales a spherical harmonic (SH) vector, in other words, Out[i] = A[i] * Scale.

Inheritance Hierarchy

Object Leave Site
SphericalHarmonics

Class Information

Namespace Microsoft.DirectX.Direct3D
Assembly Microsoft.DirectX.Direct3DX (microsoft.directx.direct3dx.dll)
Strong Name Microsoft.DirectX.Direct3DX,  Version=1.0.2902.0,  Culture=neutral,  PublicKeyToken=31bf3856ad364e35

© 2004 Microsoft Corporation. All rights reserved. Terms of use.

Feedback? Please provide us with your comments on this topic.
For more help, visit the DirectX Developer Center