TOpenCLValue::FixAngle Method

Overload List

#SignatureDescription
1TOpenCLBase *FixAngle(TOpenCLBase *Src, int SrcIndex, int Index, int Len);
2TOpenCLValue *FixAngle(TOpenCLValue *Src);Sets angle in [-2PI,2PI].

Overload 1: TOpenCLBase *FixAngle(TOpenCLBase *Src, int SrcIndex, int Index, int Len);

#NameTypeDescription
1SrcTOpenCLBase *
2SrcIndexint
3Indexint
4Lenint
Declared in Dew::Math::TOpenCLBase · Dew.Math/clMtxVec.h · Cross-compiler

Overload 2: TOpenCLValue *FixAngle(TOpenCLValue *Src);

Sets angle in [-2PI,2PI].

#NameTypeDescription
1SrcTOpenCLValue *

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