Overload List
| # | Signature | Description |
|---|---|---|
| 1 | TOpenCLBase *FixAngle(TOpenCLBase *Src, int SrcIndex, int Index, int Len); | |
| 2 | TOpenCLValue *FixAngle(TOpenCLValue *Src); | Sets angle in [-2PI,2PI]. |
Overload 1: TOpenCLBase *FixAngle(TOpenCLBase *Src, int SrcIndex, int Index, int Len);
| # | Name | Type | Description |
|---|---|---|---|
| 1 | Src | TOpenCLBase * | |
| 2 | SrcIndex | int | |
| 3 | Index | int | |
| 4 | Len | int |
Declared in Dew::Math::TOpenCLBase · Dew.Math/clMtxVec.h · Cross-compiler
Overload 2: TOpenCLValue *FixAngle(TOpenCLValue *Src);
Sets angle in [-2PI,2PI].
| # | Name | Type | Description |
|---|---|---|---|
| 1 | Src | TOpenCLValue * |
Returns: 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.
Declared in Dew::Math::TOpenCLValue · Dew.Math/clMtxVec.h · Cross-compiler