TOpenCLValue::TruncAndFrac Method

Overload List

#SignatureDescription
1void TruncAndFrac(TOpenCLBase *TruncDst, TOpenCLBase *FracDst, int TruncIdx, int FracIdx, int Index, int Len);
2void TruncAndFrac(TOpenCLValue *TruncDst, TOpenCLValue *FracDst);Rounds a real number towards zero and returns the fractional part.

Overload 1: void TruncAndFrac(TOpenCLBase *TruncDst, TOpenCLBase *FracDst, int TruncIdx, int FracIdx, int Index, int Len);

#NameTypeDescription
1TruncDstTOpenCLBase *
2FracDstTOpenCLBase *
3TruncIdxint
4FracIdxint
5Indexint
6Lenint
Declared in Dew::Math::TOpenCLBase · Dew.Math/clMtxVec.h · Cross-compiler

Overload 2: void TruncAndFrac(TOpenCLValue *TruncDst, TOpenCLValue *FracDst);

Rounds a real number towards zero and returns the fractional part.

#NameTypeDescription
1TruncDstTOpenCLValue *
2FracDstTOpenCLValue *
Remarks:

Rounds calling object value towards zero to an integer and stores the result in the TruncDst object as a floating point numbers. The fractional part is stored in the FracDst.

See Also: TOpenCLValue::Frac, TOpenCLValue::Round
Declared in Dew::Math::TOpenCLValue · Dew.Math/clMtxVec.h · Cross-compiler