![]() |
![]() |
![]() |
SphericalHarmonics.Scale Method |
Language: |
Scales a spherical harmonic (SH) vector, in other words, Out[i] = A[i] * Scale.
Visual Basic .NET Public Shared Sub Scale( _
ByVal output() As Single, _
ByVal order As Integer, _
ByVal input As GraphicsStream, _
ByVal scaleFactor As Single _
)C# public static void Scale(
float[] output,
int order,
GraphicsStream input,
float scaleFactor
);Managed C++ public: static void Scale(
float output __gc[],
int order,
GraphicsStream *input,
float scaleFactor
);JScript .NET public static function Scale(
output : float[],
order : int,
input : GraphicsStream,
scaleFactor : float
);
output System.Single[]. An array of floating point values that represent 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. input Microsoft.DirectX.GraphicsStream. A GraphicsStream object that represents the spherical harmonic (SH) vector to scale. scaleFactor System.Single. The scale value.
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.
Feedback? Please provide us with your comments on this topic.
For more help, visit the DirectX Developer Center