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 of the value stored in the calling object. FloatPrecision and TOpenCLBase.Complex property of SinX and CosX are adjusted automatically.
Note
Use this method if you require both sine and cosine.
Examples
var a: TOpenCLValue;
s,c: TOpenCLValue;
begin
CreateIt(a,s,c);
try
a.Copy(0);
a.SinCos(s,c); // s=[0], c =[1]
finally
FreeIt(a,s,c);
end;
end;
See Also: TOpenCLValue.Sin, TOpenCLValue.Cos