TOpenCLValue FixAngle(TOpenCLValue Src)
Sets angle in [-2PI,2PI].
| # | Name | Type | Description |
|---|---|---|---|
| 1 | Src | TOpenCLValue | source TOpenCLValue |
Returns: TOpenCLValue - ThetaRad within -2Dew.Math.Units.Math387.PI and Dew.Math.Units.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. This is where "FixAngle" can help.
Note
The vector must be real.