SphericalHarmonics.RotateZ(Single[],Int32,Single,GraphicsStream) Method (Microsoft.DirectX.Direct3D)

Rotates the spherical harmonic (SH) vector in the z-axis by the given angle.

Definition

Visual Basic Public Shared Sub RotateZ( _
    ByVal output() As Single, _
    ByVal order As Integer, _
    ByVal angle As Single, _
    ByVal input As GraphicsStream _
)
C# public static void RotateZ(
    float[] output,
    int order,
    float angle,
    GraphicsStream input
);
C++ public:
static void RotateZ(
    array<float>^ output,
    int order,
    float angle,
    GraphicsStreaminput
);
JScript public static function RotateZ(
    output : float[],
    order : int,
    angle : float,
    input : GraphicsStream
);

Parameters

output System.Single[]
An array of floating point values that represent SH output coefficients.
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.
angle System.Single
Rotation angle in radians. The rotation is performed around the z-axis.
input Microsoft.DirectX.GraphicsStream
A GraphicsStream object that represents rotated SH coefficients.

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.