procedure SinCos(SinX: TOpenCLValue; CosX: TOpenCLValue);
Sine and cosine.
| # | Name | Type | Description |
|---|---|---|---|
| 1 | SinX | TOpenCLValue | source TOpenCLValue |
| 2 | CosX | TOpenCLValue | source 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