function FixAngle(const Src: TOpenCLValue): TOpenCLValue;
Sets angle in [-2PI,2PI].
| # | Name | Type | Description |
|---|---|---|---|
| 1 | Src | TOpenCLValue |
Returns: TOpenCLValue - ThetaRad within -2Math387.PI and Math387.PI interval.
Remarks:
Calling this function prior to passing the value to trigonometric functions can significantly improve numerical accuracy.
Sine/cosine appear within many other functions especially complex versions of trigonometric functions. FixAngle method is not used implicitely within TOpenCLValue methods. To achieve maximum performance make sure that the arguments passed to complex trigonometric functions are "small" or scaled down.
Note
The vector must be real.