Microsoft DirectX 9.0 SDK Update (October 2004)

SphericalHarmonics.Dot Method

Language:

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

Computes the dot product of two spherical harmonic (SH) vectors.

Definition

Visual Basic .NET Public Shared Function Dot( _
    ByVal order As Integer, _
    ByVal vectorA() As Single, _
    ByVal vectorB() As Single _
) As Single
C# public static float Dot(
    int order,
    float[] vectorA,
    float[] vectorB
);
Managed C++ public: static float Dot(
    int order,
    float vectorA __gc[],
    float vectorB __gc[]
);
JScript .NET public static function Dot(
    order : int,
    vectorA : float[],
    vectorB : float[]
) : float;

Parameters

order System.Int32. Order of the spherical harmonic (SH) evaluation. Must be in the range of SphericalHarmonics.MinimumOrder to SphericalHarmonics.MaximumOrder, inclusive. The evaluation generates order2 coefficients. The degree of the evaluation is order - 1.
vectorA System.Single[]. An array of floating point values that represent the first spherical harmonic (SH) vector.
vectorB System.Single[]. An array of floating point values that represent the second spherical harmonic (SH) vector.

Return Value

System.Single . A floating point value that represents the dot product of the two vectors.

Remarks

Each coefficient of the basis function Ylm is stored at location l2 + m + l, where:


© 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