SphericalHarmonics.Dot(Int32,GraphicsStream,GraphicsStream) Method (Microsoft.DirectX.Direct3D)

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

Definition

Visual Basic Public Shared Function Dot( _
    ByVal order As Integer, _
    ByVal vectorA As GraphicsStream, _
    ByVal vectorB As GraphicsStream _
) As Single
C# public static float Dot(
    int order,
    GraphicsStream vectorA,
    GraphicsStream vectorB
);
C++ public:
static float Dot(
    int order,
    GraphicsStreamvectorA,
    GraphicsStreamvectorB
);
JScript public static function Dot(
    order : int,
    vectorA : GraphicsStream,
    vectorB : GraphicsStream
) : float;

Parameters

order System.Int32
Order of the 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 Microsoft.DirectX.GraphicsStream
A GraphicsStream object that represents the first SH vector.
vectorB Microsoft.DirectX.GraphicsStream
A GraphicsStream object that represents the second 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:

  • l is the degree of the basis function.
  • m is the basis function index for the given l value and ranges from -l to l, inclusive.