clValue.SinCos Method

procedure SinCos(SinX: TOpenCLValue; CosX: TOpenCLValue);

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
var a, s,c: clValue;
begin
    a.Copy(0);
    a.SinCos(s,c); // s=[0], c =[1]
end;
See Also: clValue.Sin, clValue.Cos