Microsoft DirectX 9.0 SDK Update (October 2004)

SphericalHarmonics.Rotate Method

Language:

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

Rotates the spherical harmonic (SH) vector by the given matrix.

Definition

Visual Basic .NET Public Shared Sub Rotate( _
    ByVal output As GraphicsStream, _
    ByVal order As Integer, _
    ByVal rotation As Matrix, _
    ByVal input() As Single _
)
C# public static void Rotate(
    GraphicsStream output,
    int order,
    Matrix rotation,
    float[] input
);
Managed C++ public: static void Rotate(
    GraphicsStream *output,
    int order,
    Matrix rotation,
    float input __gc[]
);
JScript .NET public static function Rotate(
    output : GraphicsStream,
    order : int,
    rotation : Matrix,
    input : float[]
);

Parameters

output Microsoft.DirectX.GraphicsStream. A GraphicsStream object that represents spherical harmonic (SH) output coefficients.
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.
rotation Microsoft.DirectX.Matrix. The rotation Matrix. The rotation sub-matrix must be orthogonal, with a unit determinant.
input System.Single[]. An array of floating point values that represent rotated spherical harmonic (SH) coefficients.

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