clValue.SinCos Method

void SinCos(TOpenCLValue SinX, TOpenCLValue CosX)

Sine and cosine.

#NameTypeDescription
1SinXTOpenCLValuesource TOpenCLValue
2CosXTOpenCLValuesource TOpenCLValue

Result: stored in self (calling object)

Remarks:

Calculates the sine and cosine for calling object value and stores the sine to SinX and cosine to CosX.

Note
Use this method if you require both sine and cosine.

Examples
clValue a;
clValue s;
clValue c;
a.Copy(0);
a.SinCos(s,c); // s=new double[] {0}, c =new double[] {1}
See Also: clValue.Sin, clValue.Cos